Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The suspense #1

Open
nickl- opened this issue Aug 29, 2012 · 1 comment
Open

The suspense #1

nickl- opened this issue Aug 29, 2012 · 1 comment

Comments

@nickl-
Copy link
Member

nickl- commented Aug 29, 2012

Is killing me !

play dead panda

@alganet
Copy link
Member

alganet commented Aug 30, 2012

We had a lot of ideas! The first one is to replace the PHPUnit assertions by Respect\Validation:

public function testSomethingNice() {
    $myComplexThing = MyComplexLib::doSomething();
    $this->key('foo', $this->numeric()->positive())->assert($myComplexThing);
}

The assertion messages would be out-of-the-box-ish awesome, much better than the PHPunit diffs, and we can still run the test suite using a standard PHPUnit installation (plus a PEAR package for Respect\Test and Respect\Validation).

Another idea is to use Respect\Config to provide stubs and mocks, but we're not sure how yet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants