public function testBasicHandleRequest() { date_default_timezone_set('UTC'); $o = new StaticFileProcessor(); $oModel = $o->handleRequest(vsc::getEnv()->getHttpRequest()); $this->assertInstanceOf(StaticFileModel::class, $oModel); }
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()); }