/**
  * Determinate running mode
  *
  * @return string
  */
 private function getMode()
 {
     if (file_exists(Compiled::getFilePath())) {
         return Compiled::MODE;
     }
     return Developer::MODE;
 }
Example #2
0
 public function testGetFilePath()
 {
     $this->assertContains('/var/di/global.ser', $this->_compiled->getFilePath());
 }