public function testSetTracer() { $log = new \Psr\Log\NullLogger(); $matcher = $this->prophet->prophesize("Micro\\Matching\\MatcherInterface"); $matcher->willImplement("Micro\\TraceableInterface"); $matcher->tracer($log)->shouldBeCalled(); $controller = $this->prophet->prophesize("Micro\\ControllerInterface"); $controller->willImplement("Micro\\TraceableInterface"); $controller->tracer($log)->shouldBeCalled(); $app = new Application($matcher->reveal()); $app->attach($controller->reveal()); $app->tracer($log); $this->assertSame($log, $app->tracer); }