public function WebAssertTest::testCookieEquals in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/tests/WebAssertTest.php \Behat\Mink\Tests\WebAssertTest::testCookieEquals()
File
- vendor/
behat/ mink/ tests/ WebAssertTest.php, line 127
Class
Namespace
Behat\Mink\TestsCode
public function testCookieEquals() {
$this->session
->expects($this
->any())
->method('getCookie')
->will($this
->returnValueMap(array(
array(
'foo',
'bar',
),
array(
'bar',
'baz',
),
)));
$this
->assertCorrectAssertion('cookieEquals', array(
'foo',
'bar',
));
$this
->assertWrongAssertion('cookieEquals', array(
'bar',
'foo',
), 'Behat\\Mink\\Exception\\ExpectationException', 'Cookie "bar" value is "baz", but should be "foo".');
}