function testHttp_ViewCookie() { $locator = new A_Locator(); $view = new A_Http_View($locator); $view->setCookie('Foo', 'Bar', 'Baz'); $this->assertEqual(array(), array_diff_assoc(array('Foo', 'Bar', 'Baz'), $view->getCookie('Foo'))); }