lithium\tests\cases\test\UnitTest::testAssertCookie PHP Method

testAssertCookie() public method

With a fresh PHP environment this might throw an exception: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. See also http://php.net/function.date-default-timezone-get.php
public testAssertCookie ( )
    public function testAssertCookie()
    {
        $expected = array('key' => 'key2.nested', 'value' => 'value1', 'expires' => 'May 04 2010 14:02:36 EST');
        $this->test->assertCookie($expected);
        $results = $this->test->results();
        $expected = 'fail';
        $this->assertEqual($expected, $results[0]['result']);
        $expected = '/not found in headers./';
        $this->assertPattern($expected, $results[0]['message']);
    }
UnitTest