/** * Mocks the broker */ public function disableBroker() { $broker = new BlackholeBroker(); $broker->acceptAllMethodCalls(); // allows to be used as a mock $this->app->instance('broker', $broker); }
public function testFluencyPattern() { $methodsCascade = [['connect'], ['sendMessage', 'lorem ipsum dolor'], ['disconnect']]; $this->instance->acceptAllMethodCalls(); $this->assertMethodCascading($this->instance, $methodsCascade); }