Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test case

  • Loading branch information...
commit e33653a8d7f5910782577ae6bc7518e172938a4c 1 parent db63ba2
@luissquall luissquall authored
View
4 lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php
@@ -601,12 +601,14 @@ public function testReadEmpty() {
$_COOKIE['CakeTestCookie'] = array(
'JSON' => '{"name":"value"}',
'Empty' => '',
- 'String' => '{"somewhat:"broken"}'
+ 'String' => '{"somewhat:"broken"}',
+ 'Array' => '{}'
);
$this->assertEquals(array('name' => 'value'), $this->Cookie->read('JSON'));
$this->assertEquals('value', $this->Cookie->read('JSON.name'));
$this->assertEquals('', $this->Cookie->read('Empty'));
$this->assertEquals('{"somewhat:"broken"}', $this->Cookie->read('String'));
+ $this->assertEquals(array(), $this->Cookie->read('Array'));
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.