Esempio n. 1
0
 /**
  * @test
  * @covers \Bytes\Component::Controller
  * @expectedException \Bytes\ComponentException
  * @expectedExceptionMessageRegExp /Method \w+ not found in controller \w+/
  */
 public function Controller_NoMethod()
 {
     $Component = new Target();
     $OB = new \Bytes\ObjectBuilder();
     $OB->SetInjectionContainer(new \Bytes\InjectionContainer());
     $Component->SetDirectory(__DIR__ . '/Components/SampleComponent/')->SetObjectBuilder($OB)->Initialize(new \Bytes\Router());
     $Output = $Component->Controller('Index', 'Foobar');
 }