elliotchance / concise

✅ Concise is test framework for using plain English and minimal code, built on PHPUnit.
MIT License
45 stars 3 forks source link

New method of chaining assertions #284

Closed elliotchance closed 8 years ago

elliotchance commented 9 years ago
$this->assert(123)->equals(456);
$this->assertUrl('foo')->isValid();

This has been tried before, but the problem was you couldn't really tell when the assertion chain ended.

If you use the $this->assert() and the tearDown you could potentially make this work. its worth investigating.

elliotchance commented 8 years ago

This is already done. It was part of the 2.0 release.