File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/Symfony/Bundle/WebServerBundle/Tests/WebServerConfig Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ public function testConstructor()
22
22
__DIR__ .'/fixtures ' ,
23
23
'dev ' ,
24
24
'85.111.31.18:8080 ' ,
25
- __DIR__ .'/fixtures/router.php '
25
+ __DIR__ .'/fixtures/router.php ' ,
26
+ '/usr/bin/php -c /tmp/custom/php.ini '
26
27
);
27
28
28
29
$ this ->assertSame (
@@ -36,6 +37,7 @@ public function testConstructor()
36
37
$ this ->normalizePath (__DIR__ .'/fixtures/router.php ' ),
37
38
$ this ->normalizePath ($ config ->getRouter ())
38
39
);
40
+ $ this ->assertSame ('/usr/bin/php -c /tmp/custom/php.ini ' , $ config ->getExecutable ());
39
41
}
40
42
41
43
public function testWillSetCorrectAddressAndPortAutomatically ()
@@ -114,6 +116,14 @@ public function testWillSetRouterToDeaultIfNotPresent()
114
116
);
115
117
}
116
118
119
+ p
70C4
ublic function testWillTryToFindExectuableIfNotPresent ()
120
+ {
121
+ $ config = new WebServerConfig (__DIR__ .'/fixtures ' , 'dev ' );
122
+
123
+ // symplified as path will vary a lot on different systems
124
+ $ this ->assertNotEmpty ($ config ->getExecutable ());
125
+ }
126
+
117
127
/**
118
128
* Normalizes directory separators to what is native on the current platform.
119
129
*
You can’t perform that action at this time.
0 commit comments