Пример #1
0
	/**
	 * Test the getBasename method
	 */
	public function testGetBasename(){
		$file = new \Core\Filestore\Backends\FileRemote($this->_testfile);

		$this->assertEquals('README.md', $file->getBasename());
		$this->assertEquals('README', $file->getBasename(true));

		// This tests that content-disposition is working as expected.
		$file2 = \Core\Filestore\Factory::File($this->_testDisposition);
		$this->assertEquals('out.txt', $file2->getBasename());
		$this->assertEquals('out', $file2->getBasename(true));
	}