protected function expectCallableOnce() { $mock = $this->createCallableMock(); $mock->expects($this->once())->method('__invoke'); return $mock; }