public function testGetterWithNonExistingUrl() { $file = new File('http://www.php.net/svn.php'); $this->assertSame('http://www.php.net/svn.php', $file->getPath()); $this->assertSame('svn.php', $file->getName()); $this->assertSame('php', $file->getExtension()); }