8000 Tests for "executable" option · symfony/symfony@be96c77 · GitHub
[go: up one dir, main page]

Skip to content

Commit be96c77

Browse files
committed
Tests for "executable" option
1 parent 2443461 commit be96c77

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Symfony/Bundle/WebServerBundle/Tests/WebServerConfig/WebServerConfigTest.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public function testConstructor()
2222
__DIR__.'/fixtures',
2323
'dev',
2424
'85.111.31.18:8080',
25-
__DIR__.'/fixtures/router.php'
25+
__DIR__.'/fixtures/router.php',
26+
'/usr/bin/php -c /tmp/custom/php.ini'
2627
);
2728

2829
$this->assertSame(
@@ -36,6 +37,7 @@ public function testConstructor()
3637
$this->normalizePath(__DIR__.'/fixtures/router.php'),
3738
$this->normalizePath($config->getRouter())
3839
);
40+
$this->assertSame('/usr/bin/php -c /tmp/custom/php.ini', $config->getExecutable());
3941
}
4042

4143
public function testWillSetCorrectAddressAndPortAutomatically()
@@ -114,6 +116,14 @@ public function testWillSetRouterToDeaultIfNotPresent()
114116
);
115117
}
116118

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+
117127
/**
118128
* Normalizes directory separators to what is native on the current platform.
119129
*

0 commit comments

Comments
 (0)
0