저자: Victor Farazdagi
상속: extends Base
예제 #1
0
파일: Less.php 프로젝트: farazdagi/phrozn
 /**
  * Get output file path
  *
  * @return string
  */
 public function getOutputFile()
 {
     if (!$this->outputFile) {
         $path = new OutputFile($this);
         $this->setOutputFile($path->get());
     }
     return $this->outputFile;
 }
예제 #2
0
 public function testStylesPaths()
 {
     $view = new View\Less();
     $view->setInputFile('/var/www/phrozn-test/styles/some-entry.less')->setOutputDir('/var/www/output');
     $path = new OutputPath\Style($view);
     $this->assertSame('/var/www/output/styles/some-entry.css', $path->get());
     $view->setInputFile('/var/www/phrozn-test/styles/sub/folder/some-entry.less')->setOutputDir('/var/www/output');
     $path->setView($view);
     $this->assertSame('/var/www/output/styles/sub/folder/some-entry.css', $path->get());
     $view->setInputFile('/var/www/phrozn-test/sub/folder/some-entry.less')->setOutputDir('/var/www/output');
     $path->setView($view);
     $this->assertSame('/var/www/output/styles/some-entry.css', $path->get());
 }
예제 #3
0
 /**
  * Get output file path
  *
  * @return string
  */
 public function getOutputFile()
 {
     $path = new OutputFile($this);
     return $path->get();
 }