private function transportOk(InvocationMatcher $matcher = null) { $matcher = $matcher ?: $this->once(); $this->transport->expects($matcher)->method('send')->willReturn($this->expectedResponse); }