Skip to content

Commit 7126c8d

Browse files
committed
[FrameworkBundle] fixed tests
1 parent f7a1adb commit 7126c8d

File tree

12 files changed

+14
-16
lines changed

12 files changed

+14
-16
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"path": "\/hello\/{name}",
33
"pathRegex": "#^\/hello(?:\/(?P<name>[a-z]+))?$#s",
44
"host": "localhost",
5-
"hostRegex": "#^localhost$#s",
5+
"hostRegex": "#^localhost$#si",
66
"scheme": "http|https",
77
"method": "GET|HEAD",
88
"class": "Symfony\\Component\\Routing\\Route",

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- Path: /hello/{name}
22
- Path Regex: #^/hello(?:/(?P<name>[a-z]+))?$#s
33
- Host: localhost
4-
- Host Regex: #^localhost$#s
4+
- Host Regex: #^localhost$#si
55
- Scheme: http|https
66
- Method: GET|HEAD
77
- Class: Symfony\Component\Routing\Route

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<comment>Path</comment> /hello/{name}
22
<comment>Path Regex</comment> #^/hello(?:/(?P<name>[a-z]+))?$#s
33
<comment>Host</comment> localhost
4-
<comment>Host Regex</comment> #^localhost$#s
4+
<comment>Host Regex</comment> #^localhost$#si
55
<comment>Scheme</comment> http|https
66
<comment>Method</comment> GET|HEAD
77
<comment>Class</comment> Symfony\Component\Routing\Route

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<route class="Symfony\Component\Routing\Route">
33
<path regex="#^/hello(?:/(?P&lt;name&gt;[a-z]+))?$#s">/hello/{name}</path>
4-
<host regex="#^localhost$#s">localhost</host>
4+
<host regex="#^localhost$#si">localhost</host>
55
<scheme>http</scheme>
66
<scheme>https</scheme>
77
<method>GET</method>

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"path": "\/name\/add",
33
"pathRegex": "#^\/name\/add$#s",
44
"host": "localhost",
5-
"hostRegex": "#^localhost$#s",
5+
"hostRegex": "#^localhost$#si",
66
"scheme": "http|https",
77
"method": "PUT|POST",
88
"class": "Symfony\\Component\\Routing\\Route",

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- Path: /name/add
22
- Path Regex: #^/name/add$#s
33
- Host: localhost
4-
- Host Regex: #^localhost$#s
4+
- Host Regex: #^localhost$#si
55
- Scheme: http|https
66
- Method: PUT|POST
77
- Class: Symfony\Component\Routing\Route

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<comment>Path</comment> /name/add
22
<comment>Path Regex</comment> #^/name/add$#s
33
<comment>Host</comment> localhost
4-
<comment>Host Regex</comment> #^localhost$#s
4+
<comment>Host Regex</comment> #^localhost$#si
55
<comment>Scheme</comment> http|https
66
<comment>Method</comment> PUT|POST
77
<comment>Class</comment> Symfony\Component\Routing\Route

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<route class="Symfony\Component\Routing\Route">
33
<path regex="#^/name/add$#s">/name/add</path>
4-
<host regex="#^localhost$#s">localhost</host>
4+
<host regex="#^localhost$#si">localhost</host>
55
<scheme>http</scheme>
66
<scheme>https</scheme>
77
<method>PUT</method>

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_collection_1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"path": "\/hello\/{name}",
44
"pathRegex": "#^\/hello(?:\/(?P<name>[a-z]+))?$#s",
55
"host": "localhost",
6-
"hostRegex": "#^localhost$#s",
6+
"hostRegex": "#^localhost$#si",
77
"scheme": "http|https",
88
"method": "GET|HEAD",
99
"class": "Symfony\\Component\\Routing\\Route",
@@ -23,7 +23,7 @@
2323
"path": "\/name\/add",
2424
"pathRegex": "#^\/name\/add$#s",
2525
"host": "localhost",
26-
"hostRegex": "#^localhost$#s",
26+
"hostRegex": "#^localhost$#si",
2727
"scheme": "http|https",
2828
"method": "PUT|POST",
2929
"class": "Symfony\\Component\\Routing\\Route",

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_collection_1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ route_1
44
- Path: /hello/{name}
55
- Path Regex: #^/hello(?:/(?P<name>[a-z]+))?$#s
66
- Host: localhost
7-
- Host Regex: #^localhost$#s
7+
- Host Regex: #^localhost$#si
88
- Scheme: http|https
99
- Method: GET|HEAD
1010
- Class: Symfony\Component\Routing\Route
@@ -24,7 +24,7 @@ route_2
2424
- Path: /name/add
2525
- Path Regex: #^/name/add$#s
2626
- Host: localhost
27-
- Host Regex: #^localhost$#s
27+
- Host Regex: #^localhost$#si
2828
- Scheme: http|https
2929
- Method: PUT|POST
3030
- Class: Symfony\Component\Routing\Route

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy