예제 #1
0
 public function testBasicHandleRequest()
 {
     date_default_timezone_set('UTC');
     $o = new StaticFileProcessor();
     $oModel = $o->handleRequest(vsc::getEnv()->getHttpRequest());
     $this->assertInstanceOf(StaticFileModel::class, $oModel);
 }
예제 #2
0
 public function testBasicSetPath()
 {
     $o = new StaticFileProcessor();
     $o->setFilePath(__FILE__);
     $oModel = $o->handleRequest(vsc::getEnv()->getHttpRequest());
     $this->assertInstanceOf(StaticFileModel::class, $oModel);
     $this->assertEquals(__FILE__, $oModel->getFilePath());
 }