示例#1
0
 function testHttp_ViewGetSetHas()
 {
     $locator = new A_Locator();
     $view = new A_Http_View($locator);
     $str = 'foobar';
     $view->set('foo', $str);
     $this->assertEqual($str, $view->get('foo'));
     $this->assertTrue($view->has('foo'));
     $this->assertFalse($view->has('bar'));
 }