public function testErrorReportingWithoutNotice() { $this->client->expects($this->never())->method('notify'); $this->client->setErrorReportingLevel(E_ALL & ~E_NOTICE)->errorHandler(E_NOTICE, "Something broke", "somefile.php", 123); }