You are here

public function UploadedFileTest::testGetClientOriginalNameSanitizeFilename in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/File/UploadedFileTest.php \Symfony\Component\HttpFoundation\Tests\File\UploadedFileTest::testGetClientOriginalNameSanitizeFilename()

File

vendor/symfony/http-foundation/Tests/File/UploadedFileTest.php, line 174

Class

UploadedFileTest

Namespace

Symfony\Component\HttpFoundation\Tests\File

Code

public function testGetClientOriginalNameSanitizeFilename() {
  $file = new UploadedFile(__DIR__ . '/Fixtures/test.gif', '../../original.gif', 'image/gif', filesize(__DIR__ . '/Fixtures/test.gif'), null);
  $this
    ->assertEquals('original.gif', $file
    ->getClientOriginalName());
}