8000 minor #14588 [Debug] Fixed ClassNotFoundFatalErrorHandlerTest (xelaris) · symfony/symfony@45cd637 · GitHub
[go: up one dir, main page]

Skip to content

Commit 45cd637

Browse files
committed
minor #14588 [Debug] Fixed ClassNotFoundFatalErrorHandlerTest (xelaris)
This PR was merged into the 2.6 branch. Discussion ---------- [Debug] Fixed ClassNotFoundFatalErrorHandlerTest | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #14573 | License | MIT | Doc PR | Since `testCannotRedeclareClass` is skipped on case-sensitive filesystems, it won't have any effect on the travis build, but fixes the issue described in #14573 for e.g. OS X. Commits ------- f7def8c [Debug] Fixed ClassNotFoundFatalErrorHandlerTest
2 parents 54311da + f7def8c commit 45cd637

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ function ($className) { /* do nothing here */ },
181181

182182
public function testCannotRedeclareClass()
183183
{
184-
if (!file_exists(__DIR__.'/../FIXTURES/REQUIREDTWICE.PHP')) {
184+
if (!file_exists(__DIR__.'/../FIXTURES2/REQUIREDTWICE.PHP')) {
185185
$this->markTestSkipped('Can only be run on case insensitive filesystems');
186186
}
187187

188-
require_once __DIR__.'/../FIXTURES/REQUIREDTWICE.PHP';
188+
require_once __DIR__.'/../FIXTURES2/REQUIREDTWICE.PHP';
189189

190190
$error = array(
191191
'type' => 1,

src/Symfony/Component/Debug/Tests/Fixtures/RequiredTwice.php

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Symfony\Component\Debug\Tests\Fixtures2;
4+
5+
class RequiredTwice
6+
{
7+
}

0 commit comments

Comments
 (0)
0