public function testConstructorWithNullLogstream() { $path = '/tmp/log'; @unlink($path); Logger::$logStream = null; $this->assertInstanceOf('Rexmac\\Zyndax\\Log\\Logger', Logger::getInstance()); $this->assertTrue(file_exists($path)); @unlink($path); }