예제 #1
0
 public function testCannonicalizePath()
 {
     $abs = __DIR__ . '/./fixtures/a.txt';
     $rel = 'a.txt';
     $expected = __DIR__ . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'a.txt';
     $this->assertEqualPaths($expected, $this->object->cannonicalizePath($abs));
     $this->assertEqualPaths($expected, $this->object->cannonicalizePath($rel));
     try {
         $this->object->cannonicalizePath('nesdagf');
         $this->fail('Exception was not thrown.');
     } catch (\WebLoader\FileNotFoundException $e) {
     }
 }