Skip to content

Instantly share code, notes, and snippets.

@SebSept
Created March 17, 2014 11:18
Show Gist options
  • Save SebSept/9597567 to your computer and use it in GitHub Desktop.
Save SebSept/9597567 to your computer and use it in GitHub Desktop.
<?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