/**
  * @test
  * @expectedException \LogicException
  */
 public function process_fail()
 {
     $processor = new DummyProcessor();
     $this->target->add($processor);
     $this->target->process('example.' . DummyProcessor::EXTENSION, 'some-js-content');
 }
示例#2
0
 /**
  * @param Processor|string $compiler
  */
 public function add($compiler)
 {
     $instance = $this->getInstance($compiler);
     $this->compiler->add($instance);
 }