Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9b89739

Browse filesBrowse files
committed
Add test
1 parent 983c5a3 commit 9b89739
Copy full SHA for 9b89739

File tree

2 files changed

+15
-1
lines changed
Filter options

2 files changed

+15
-1
lines changed

‎src/Symfony/Component/AssetMapper/Tests/AssetMapperDevServerSubscriberFunctionalTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/AssetMapper/Tests/AssetMapperDevServerSubscriberFunctionalTest.php
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ public function testGettingAssetWorks()
3232
$this->assertSame('immutable, max-age=604800, public', $response->headers->get('Cache-Control'));
3333
}
3434

35+
public function testGettingAssetWithNonAsciiFilenameWorks()
36+
{
37+
$client = static::createClient();
38+
39+
$client->request('GET', '/assets/voilà-45f5b4426b14a843fdc2f723b974b88f.css');
40+
$response = $client->getResponse();
41+
$this->assertSame(200, $response->getStatusCode());
42+
$this->assertSame(<<<EOF
43+
/* voilà.css */
44+
body {}
45+
46+
EOF, $response->getContent());
47+
}
48+
3549
public function test404OnUnknownAsset()
3650
{
3751
$client = static::createClient();
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/* voilà.css */
1+
/* voilà.css */
22
body {}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.