blumilksoftware / blt

Behat+Laravel toolbox. Still in progress.
https://packagist.org/packages/blumilksoftware/blt
MIT License
4 stars 0 forks source link

PHPUnit assertion helper #11

Closed krzysztofrewak closed 3 years ago

krzysztofrewak commented 3 years ago

PHPUnit assertion helper would be useful. Right now I'm using static assertions like this:

\PHPUnit\Framework\Assert::assertEquals($count, $service->getCount());

I would love to use some magic methods (especially __call()) to remap PHPUnit assertions into our contexts. We could use them as in Laravel PHPUnit tests:

$this->assertEquals($count, $service->getCount());