public function testHandle() { Error::setLogger($this->logger); $error = new Error(); $error->setLevel(E_ERROR); $this->assertTrue($error->handle(E_ERROR, 'Foo', __FILE__, __LINE__, array())); $this->assertSame('error', $this->logs[0]['level']); }