/** * Determinate running mode * * @return string */ private function getMode() { if (file_exists(Compiled::getFilePath())) { return Compiled::MODE; } return Developer::MODE; }
public function testGetMode() { $this->assertEquals(Compiled::MODE, $this->_compiled->getMode()); }