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

Reproduced issue #1779 #1963

Merged
merged 3 commits into from
May 27, 2015
Merged

Reproduced issue #1779 #1963

merged 3 commits into from
May 27, 2015

Conversation

Naktibalda
Copy link
Member

Failing test for issue #1779

@Naktibalda
Copy link
Member Author

The simplest possible fix.

@samdark
Copy link
Collaborator

samdark commented May 25, 2015

Looks valid.

@Naktibalda
Copy link
Member Author

Actually getClassesFromFile shouldn't include, it violates SRP.

@@ -101,7 +101,7 @@ protected function addCommentStep($comment)

public static function getClassesFromFile($file)
{
include_once $file;
self::includeFile($file);
Copy link
Member

Choose a reason for hiding this comment

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

I think anonymous function can be better here. At least it does just what needed - creates a new context without implementing a new method

Copy link
Member Author

Choose a reason for hiding this comment

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

But it would look much uglier and be much slower.

@DavertMik
Copy link
Member

Ok, thanks!

DavertMik added a commit that referenced this pull request May 27, 2015
@DavertMik DavertMik merged commit 2c226bc into Codeception:2.0 May 27, 2015
@Naktibalda Naktibalda deleted the issue-1779 branch June 13, 2015 12:37
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