Codeception / Verify

BDD Assertions for PHPUnit and Codeception
MIT License
146 stars 25 forks source link

Feature Enhancement: Return $actual, $expected, and $description #28

Closed NoMan2000 closed 7 years ago

NoMan2000 commented 7 years ago

Currently the code works like this:

if ( ! $this->isFileExpectation ) {
        a::assertEquals($expected, $this->actual, $this->description);
    } else {
        a::assertFileEquals($expected, $this->actual, $this->description);
    }

With void/no return. But I'd like to be able to turn return those three values each time as an array. For example, I call the verify function from the web code on a testing page.

screen shot 2016-11-21 at 12 52 58 pm

I extended Verify and returned those values from each of the different callers. Now I can run tests on demand through the web.

DavertMik commented 7 years ago

We improved extending options in 1.0. See Readme