コード例 #1
0
 /** @test */
 public function it_adds_an_style_action_to_the_elixir_file()
 {
     $report = ElixirFile::addStyle('example.styl');
     $this->assertEquals($report, 'SUCCESS');
     $fileContent = File::get($this->exampleFile);
     $contentShouldExist = "\n\tmix.stylus('example.styl',\n\t\t\t\tnull,\n\t\t\t\t{\n\t\t\t\t\tuse: [ postStylus('lost'), nib() ]\n\t\t\t\t});";
     $this->assertContains($contentShouldExist, $fileContent);
 }
コード例 #2
0
ファイル: Install.php プロジェクト: patrikkernke/basecamp
 /**
  * 
  * Setup Styles.
  *
  * @return void
  */
 protected function setUpStyles()
 {
     $this->describeMethod('Setup Stylus');
     $this->copyStyleStubs();
     $report = ElixirFile::addStyle('backend.styl');
     $this->reportStep('add publish task for backend.styl in elixir-file', $report);
 }