public function testApiPopProcessor_CallsMethodOnModel() { $logger = $this->createLoggerMock(); $callable = function () { }; $this->expect('popProcessor', [])->willReturn($callable); $this->assertSame($callable, $logger->popProcessor()); }