예제 #1
0
 public function testFliMuxSetup()
 {
     $app = new StubResolverApp();
     $app->configure(new DefaultConfiguration());
     $mux = new ResolverAppMux();
     $mux->addApp($app);
     $mux->run();
     $this->assertEquals($app->chainApp->called, 1);
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     $fli = new DefaultResolverApp();
     $fli->configure(new DemoConfiguration());
     $this->addApp($fli);
 }
예제 #3
0
 public function __construct(TestConfiguration $cfg)
 {
     parent::__construct();
     $fli = new DefaultResolverApp();
     $fli->configure($cfg);
     $this->addApp($fli);
 }