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
This commit is contained in:
commit
45cd637cae
@ -181,11 +181,11 @@ class ClassNotFoundFatalErrorHandlerTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function testCannotRedeclareClass()
|
public function testCannotRedeclareClass()
|
||||||
{
|
{
|
||||||
if (!file_exists(__DIR__.'/../FIXTURES/REQUIREDTWICE.PHP')) {
|
if (!file_exists(__DIR__.'/../FIXTURES2/REQUIREDTWICE.PHP')) {
|
||||||
$this->markTestSkipped('Can only be run on case insensitive filesystems');
|
$this->markTestSkipped('Can only be run on case insensitive filesystems');
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once __DIR__.'/../FIXTURES/REQUIREDTWICE.PHP';
|
require_once __DIR__.'/../FIXTURES2/REQUIREDTWICE.PHP';
|
||||||
|
|
||||||
$error = array(
|
$error = array(
|
||||||
'type' => 1,
|
'type' => 1,
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Symfony\Component\Debug\Tests\Fixtures;
|
|
||||||
|
|
||||||
class RequiredTwice
|
|
||||||
{
|
|
||||||
}
|
|
@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Symfony\Component\Debug\Tests\Fixtures2;
|
||||||
|
|
||||||
|
class RequiredTwice
|
||||||
|
{
|
||||||
|
}
|
Reference in New Issue
Block a user