/** * @expectedException InvalidArgumentException * @expectedExceptionMessage Logger Impl must be instance of Psr\Log\LoggerInterface */ public function testSetLoggerImpl() { $obj = new \ArrayObject(); Logger::setLoggerImpl($obj); }