Skip to content

PHPUnit integration #68

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

Merged
merged 3 commits into from
Jan 25, 2016
Merged

PHPUnit integration #68

merged 3 commits into from
Jan 25, 2016

Conversation

jakzal
Copy link
Contributor

@jakzal jakzal commented Jan 25, 2016

Should allow to do the following in phpunit tests:

class FooTest extends \PHPUnit_Framework_TestCase
{
    use PHPMatcherAssertions;

    public function test_it_asserts_if_a_value_matches_the_pattern()
    {
        $this->assertMatchesPattern('@integer@', 'foo');
    }
}
Failed asserting that 'foo' matches the pattern.
"foo" does not match "@integer@" pattern

For PHP 5.3 PHPMatcherTestCase is provided.

@jakzal jakzal changed the title [WIP] PHPUnit integration PHPUnit integration Jan 25, 2016
norberttech pushed a commit that referenced this pull request Jan 25, 2016
@norberttech norberttech merged commit 8709d93 into coduo:master Jan 25, 2016
@norberttech
Copy link
Member

🍻

@jakzal jakzal deleted the phpunit-integration branch January 26, 2016 08:16
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

Successfully merging this pull request may close these issues.

2 participants