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

Demonstrate undefined index notice when using fixture dependent on ordered fixture. #198

Closed
wants to merge 1 commit into from

Conversation

brabeji
Copy link

@brabeji brabeji commented Jul 8, 2015

This demonstrates that undefined index notice gets somehow suppressed during standalone tests. That notice stops execution when running doctrine:fixtures:load which is a problem. Sorry about the whitespace formatting, relevant change is at the end of Loader.php diff.

@brabeji brabeji changed the title Demonstrate undefined index notice. Demonstrate undefined index notice when using fixture dependent on ordered fixture. Jul 8, 2015
@@ -322,6 +322,10 @@ private function getUnsequencedClasses($sequences, $classes = null)
}

foreach ($classes as $class) {
if(!isset($sequences[$class])) {
dump('UNDEFINED INDEX');
die;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be removed, as it prevents merging the new test in the existing testsuite

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, without this check the notice is suppressed and the test passes. I am not sure why. This is rather demo than proper PR. Pls see the original comment.

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

Successfully merging this pull request may close these issues.

None yet

3 participants