Пример #1
0
 /**
  * @covers Opt_View::__construct
  * @covers Opt_View::getCache
  */
 public function testConstructorGetsCacheFromOpt()
 {
     $this->_tpl->setCache($obj = $this->getMock('Opt_Caching_Interface'));
     $view = new Opt_View('template.tpl');
     $this->assertSame($obj, $view->getCache());
 }