open() public method

Carries out all actions necessary to prepare the logging backend, such as opening the log file or opening a database connection.
public open ( ) : void
return void
 /**
  * @test
  */
 public function appendIgnoresMessagesAboveTheSeverityThreshold()
 {
     $logFileUrl = vfsStream::url('testDirectory') . '/test.log';
     $backend = new FileBackend(['logFileUrl' => $logFileUrl]);
     $backend->setSeverityThreshold(LOG_EMERG);
     $backend->open();
     $backend->append('foo', LOG_INFO);
     $this->assertSame(0, vfsStreamWrapper::getRoot()->getChild('test.log')->size());
 }