Ejemplo n.º 1
0
 /**
  * @covers MicrosoftAzure\Storage\Common\Internal\Logger::log
  * @covers MicrosoftAzure\Storage\Common\Internal\Logger::setLogFile
  */
 public function testLogWithString()
 {
     // Setup
     $virtualPath = VirtualFileSystem::newFile(Resources::EMPTY_STRING);
     $tip = 'This is string';
     $expected = "{$tip}\nI'm a string\n";
     Logger::setLogFile($virtualPath);
     // Test
     Logger::log('I\'m a string', $tip);
     // Assert
     $actual = file_get_contents($virtualPath);
     $this->assertEquals($expected, $actual);
 }