this is my situation. I'm using eclipse+makegood(a CI plugin) in order to launch my test. I'm using Zend framework as base of my development. I'm also using PHPUnit_story and with selenium2_testCase.
in 3.7 my test was good and now all my feature tests are Risky.
CannevasAccueilTest is an Test extended from PHPUnit_Extensions_Selenium2TestCase
no matter on the When an this is the then :
case'LaZoneDeMenuEstCorrecte': {
$result = newPHPUnit_Framework_TestResult;
$result->stopOnFailure(true); // stopthetestatthefirstfailedassertionorthefirsterror$world['testObject']->setName('testZoneDeMenu'); // definethetestnametolaunch (sameastextfunctionname)
$world['testObject']->setWindowSize($arguments[0],$arguments[1]);
$world['testObject']->run($result);
if (count($result)&&!$result->errorCount()) {
if ($result->failureCount()) { // anassertionhasfailed$failures = $result->failures();
$this->fail($failures[0]->getExceptionAsString());
}
else { // thetestisOK$this->assertTrue($result->wasSuccessful()); // storyisOK
}
}
else {
$errors= $result->errors();
$this->fail("il y a une erreur dans letest".$errors[0]->exceptionMessage());
}
}
I tried to debug my test and I understood that my trouble occur when the output is controlled ... and it gives me : "Test code or tested code did not (only) close its own output buffers"
does any one can help me understand the new mechanism ?
best regards Fierfeu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
dear all,
this is my situation. I'm using eclipse+makegood(a CI plugin) in order to launch my test. I'm using Zend framework as base of my development. I'm also using PHPUnit_story and with selenium2_testCase.
in 3.7 my test was good and now all my feature tests are Risky.
this is part of my code :
for the story :
the code used for this Given :
CannevasAccueilTest is an Test extended from PHPUnit_Extensions_Selenium2TestCase
no matter on the When an this is the then :
I tried to debug my test and I understood that my trouble occur when the output is controlled ... and it gives me : "Test code or tested code did not (only) close its own output buffers"
does any one can help me understand the new mechanism ?
best regards Fierfeu