public function testFailOnErrorPassesThroughToConnection() { $this->connection->expects($this->exactly(2))->method('failOnError')->withConsecutive(array(true), array(false)); Client::failOnError(true); Client::failOnError(false); }