/** * Test the getFilename method */ public function testGetFilename(){ $file = new \Core\Filestore\Backends\FileRemote($this->_testfile); // Sending in an empty string should return the path relative to Core. $this->assertEquals($this->_testfile, $file->getFilename('')); // Sending in null should return the path with the fully resolved path. $this->assertEquals($this->_testfile, $file->getFilename()); // The filename should also be the same as the URL in remote files. $this->assertEquals($file->getFilename(), $file->getURL()); }