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

@testWith annotation #1728

Merged
merged 9 commits into from
May 28, 2015

Conversation

giorgiosironi
Copy link
Contributor

Implementing #1151.

The scope is reduced to a sequence of lines following the annotation, each containing a JSON array.

In case of annotation parsing error this is signaled through a standard PHPUnit exception. The test for this case has to use setExceptedExceptionRegExp() because @testWith becomes a reserved keyword inside docblocks.

@sebastianbergmann
Copy link
Owner

The tests fail with PHP 5.3. If you want this in PHPUnit 4.8 then it needs to be compatible with PHP 5.3. Otherwise I'll merge it to master once 4.8 has been branched off.

@giorgiosironi
Copy link
Contributor Author

Ah, was just muscular memory, will update it to work with 5.3

@sebastianbergmann sebastianbergmann added this to the PHPUnit 4.8 milestone May 27, 2015
sebastianbergmann added a commit that referenced this pull request May 28, 2015
@sebastianbergmann sebastianbergmann merged commit a9f2f67 into sebastianbergmann:master May 28, 2015
@sebastianbergmann
Copy link
Owner

Thanks!

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.

3 participants