/** * @covers \Plop\Logger::__construct * @covers \Plop\Logger::getNamespace * @covers \Plop\Logger::getClass * @covers \Plop\Logger::getMethod */ public function testConstructorWithSpecificArguments2() { $logger = new \Plop\Logger(null, __CLASS__, __FUNCTION__); $this->assertSame(null, $logger->getNamespace()); $this->assertSame(substr(__CLASS__, strrpos('\\' . __CLASS__, '\\')), $logger->getClass()); $this->assertSame(__FUNCTION__, $logger->getMethod()); $this->assertSame(\Plop\NOTSET, $this->logger->getLevel()); $this->assertSame(0, count($this->logger->getHandlers())); $this->assertSame(0, count($this->logger->getFilters())); }