Example #1
0
 public function testAfter()
 {
     $app = new Application();
     $handler1 = $this->getMock('Durian\\Handler');
     $handler2 = $this->getMock('Durian\\Handler');
     $app->handlers([$handler1]);
     $app->after($handler2);
     $this->assertSame([$handler1, $handler2], $app->handlers());
 }