blumilksoftware / blt

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

#11 - mapping PHPUnit assertions #12

Closed krzysztofrewak closed 3 years ago

krzysztofrewak commented 3 years ago

Adding a Testing trait to the context, we can use PHPUnit assertions as they would be context's methods:

class SomeContext implements Context
{
    use Testing;

    public function test(): void
    {
        $this->assertTrue(2 > 1);
    }
}

It should close #11.