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