8000 [Validator] Fixed StaticMethodLoaderTest to actually test something by webmozart · Pull Request #12017 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Fixed StaticMethodLoaderTest to actually test something #12017

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 1 commit into from
Sep 25, 2014

Conversation

webmozart
Copy link
Contributor
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This test is not testing anything, except for whether PHP throws a strict standards error when invalid code is loaded.

I disabled error reporting for this test, so that the actual functionality (ignoring static+abstract functions) is tested.

@webmozart webmozart force-pushed the 2.3-static-method-loader branch from c99333e to b5ef7ce Compare September 24, 2014 14:04
@webmozart webmozart changed the title [Validator] Removed bogus test which fails on some systems [Validator] Fixed StaticMethodLoaderTest to actually test something Sep 24, 2014
@webmozart webmozart force-pushed the 2.3-static-method-loader branch from b5ef7ce to 1b1303a Compare September 24, 2014 14:07
@fabpot
Copy link
Member
fabpot commented Sep 24, 2014

👍

@fabpot
Copy link
Member
fabpot commented Sep 25, 2014

Thank you @webmozart.

@fabpot fabpot merged commit 1b1303a into symfony:2.3 Sep 25, 2014
fabpot added a commit that referenced this pull request Sep 25, 2014
…t something (webmozart)

This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] Fixed StaticMethodLoaderTest to actually test something

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This test is not testing anything, except for whether PHP throws a strict standards error when invalid code is loaded.

I disabled error reporting for this test, so that the actual functionality (ignoring static+abstract functions) is tested.

Commits
-------

1b1303a [Validator] Fixed StaticMethodLoaderTest to actually test something
@stof
Copy link
Member
stof commented Sep 25, 2014

Does PHPUnit reset the error reporting level between each test ?

@webmozart
Copy link
Contributor Author

@stof This is done manually in the test case (see setUp() and tearDown()).

@stof
Copy link
Member
stof commented Sep 25, 2014

ah indeed, I forgot it

@webmozart webmozart deleted the 2.3-static-method-loader branch October 22, 2014 17:20
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
0