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

Symfony2 getStatus() error in Codeception\Util\Framework #289

Closed
ienzam opened this issue Apr 25, 2013 · 5 comments
Closed

Symfony2 getStatus() error in Codeception\Util\Framework #289

ienzam opened this issue Apr 25, 2013 · 5 comments
Labels

Comments

@ienzam
Copy link

ienzam commented Apr 25, 2013

I am using Symfony 2.2.* for a project and wrote a simple test as below

$I = new TestGuy($scenario);
$I->wantTo('check if template alive of db');
$I->amOnPage('/dalive');
$I->seeResponseCodeIs(200);

I get an error PHP Fatal error: Call to undefined method Symfony\Component\HttpFoundation\Response::getStatus() in /path/to/project//vendor/codeception/codeception/src/Codeception/Util/Framework.php on line 463

Same problem was found on REST previously ( #174 )

The next two lines should be changed
https://github.com/Codeception/Codeception/blob/master/src/Codeception/Util/Framework.php#L459
https://github.com/Codeception/Codeception/blob/master/src/Codeception/Util/Framework.php#L363

@DavertMik
Copy link
Member

Oook. Thanks.
Is everything else working correctly in 2.2?

@ienzam
Copy link
Author

ienzam commented Apr 25, 2013

@ienzam
Copy link
Author

ienzam commented Apr 25, 2013

Another problem (though not related to this bug): How can I see
This text conatain "Some qouted text" and it is not passing
I tried almost all possible combination

$I->see('This text conatain "Some qouted text" and it is not passing')
$I->see('This text conatain \"Some qouted text\" and it is not passing')
$I->see("This text conatain \"Some qouted text\" and it is not passing")
$I->see("This text conatain \\\"Some qouted text\\\" and it is not passing")

No way to see it, what am I missing? :( Should I create a new issue?

@DavertMik
Copy link
Member

probably yes, a new issue

@DavertMik
Copy link
Member

@ienzam please create a new issue for quites.
I'm closing this one

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

No branches or pull requests

2 participants