Created
March 17, 2014 11:18
-
-
Save SebSept/9597567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$I = new WebGuy($scenario); | |
$I->wantTo('check bloc promotions'); | |
$I->amOnPage('/test.html'); | |
$I->see('TODO supply a title'); | |
$input_val = $I->grabValueFrom('input[name=email]'); // | |
\PHPUnit_Framework_Assert::assertEquals('votre e-mail', $input_val ); | |
$I->dontSeeError(); | |
/* | |
./codecept.phar run tests/nojs/bloc_newsletterCept.php | |
Codeception PHP Testing Framework v1.8.3 | |
Powered by PHPUnit 3.7.28 by Sebastian Bergmann. | |
? | |
[PHPUnit_Framework_ExpectationFailedException] | |
Failed asserting that Codeception\Maybe Object ( | |
'position' => 0 | |
'val' => null | |
'assocArray' => null | |
) matches expected 'votre e-mail'. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment