예제 #1
0
 /**
  * Test that array properties are cleared following clearVars() call
  */
 public function testClearVars()
 {
     $view = new View();
     $view->foo = array();
     $view->content = 'content';
     $this->assertTrue(is_array($view->foo));
     $this->assertEquals('content', $view->content);
     $view->clearVars();
     $this->assertFalse(isset($view->foo));
     $this->assertFalse(isset($view->content));
 }