Permalink
Browse files

Add test case

  • Loading branch information...
luissquall committed Oct 30, 2013
1 parent db63ba2 commit e33653a8d7f5910782577ae6bc7518e172938a4c
Showing with 3 additions and 1 deletion.
  1. +3 −1 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'));
}
/**

0 comments on commit e33653a

Please sign in to comment.