8000 [SecurityBundle] Skipped two tests in PHP <5.3.9 on Windows as these … · symfony/symfony@454e602 · GitHub
[go: up one dir, main page]

Skip to content

Commit 454e602

Browse files
committed
[SecurityBundle] Skipped two tests in PHP <5.3.9 on Windows as these hang due to a known bug
1 parent ebe3e04 commit 454e602

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/Functional/SecurityRoutingIntegrationTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public function testRoutingErrorIsNotExposedForProtectedResourceWhenAnonymous($c
3030
*/
3131
public function testRoutingErrorIsExposedWhenNotProtected($config)
3232
{
33+
if (strpos(PHP_OS, "WIN") === 0 && version_compare(phpversion(), "5.3.9", "<")) {
34+
$this->markTestSkipped('Test hangs on Windows & PHP due to https://bugs.php.net/bug.php?id=60120 fixed in http://svn.php.net/viewvc?view=revision&revision=318366');
35+
}
36+
3337
$client = $this->createClient(array('test_case' => 'StandardFormLogin', 'root_config' => $config));
3438
$client->insulate();
3539
$client->request('GET', '/unprotected_resource');
@@ -42,6 +46,10 @@ public function testRoutingErrorIsExposedWhenNotProtected($config)
4246
*/
4347
public function testRoutingErrorIsNotExposedForProtectedResourceWhenLoggedInWithInsufficientRights($config)
4448
{
49+
if (strpos(PHP_OS, "WIN") === 0 && version_compare(phpversion(), "5.3.9", "<")) {
50+
$this->markTestSkipped('Test hangs on Windows & PHP due to https://bugs.php.net/bug.php?id=60120 fixed in http://svn.php.net/viewvc?view=revision&revision=318366');
51+
}
52+
4553
$client = $this->createClient(array('test_case' => 'StandardFormLogin', 'root_config' => $config));
4654
$client->insulate();
4755

0 commit comments

Comments
 (0)
0