예제 #1
0
 /**
  * @covers Opc_View_Cache::setExpiryTime
  * @covers Opc_View_Cache::getExpiryTime
  */
 public function testExpiryTimeSetters()
 {
     $viewCache = new Opc_View_Cache();
     $this->assertSame(3600, $viewCache->getExpiryTime());
     $viewCache->setExpiryTime(200);
     $this->assertSame(200, $viewCache->getExpiryTime());
     $this->setExpectedException('Opc_InvalidArgumentType_Exception');
     $viewCache->setExpiryTime('none');
 }