I have a problem. Simple code
use PHPUnit\Framework\TestCase;
class StringTest extends TestCase
{
protected $stack = '';
public function testModify()
{
$this->stack .= 'modify';
$this->assertEquals('modify', $this->stack);
}
public function testEmpty()
{
$this->assertEquals('', $this->stack);
}
}
Why validation pass? Why in second test $this->stack doesn't has modifyvalue?