Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite223395

Browse files
committed
[Debug] fixed case differences between PHP and HHVM (classes are case-insensitive anyway in PHP)
1 parent23acc24 commite223395

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ public function testFatalErrorHandlers($error, $class, $translatedMessage)
254254
$m->invoke($handler,$exceptionHandler,$error);
255255

256256
$this->assertInstanceof($class,$exceptionHandler->e);
257-
$this->assertSame($translatedMessage,$exceptionHandler->e->getMessage());
257+
// class names are case insensitive and PHP/HHVM do not return the same
258+
$this->assertSame(strtolower($translatedMessage),strtolower($exceptionHandler->e->getMessage()));
258259
$this->assertSame($error['type'],$exceptionHandler->e->getSeverity());
259260
$this->assertSame($error['file'],$exceptionHandler->e->getFile());
260261
$this->assertSame($error['line'],$exceptionHandler->e->getLine());

‎src/Symfony/Component/Debug/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public function testUndefinedFunction($error, $translatedMessage)
2525
$exception =$handler->handleError($error,newFatalErrorException('',0,$error['type'],$error['file'],$error['line']));
2626

2727
$this->assertInstanceof('Symfony\Component\Debug\Exception\UndefinedFunctionException',$exception);
28-
$this->assertSame($translatedMessage,$exception->getMessage());
28+
// class names are case insensitive and PHP/HHVM do not return the same
29+
$this->assertSame(strtolower($translatedMessage),strtolower($exception->getMessage()));
2930
$this->assertSame($error['type'],$exception->getSeverity());
3031
$this->assertSame($error['file'],$exception->getFile());
3132
$this->assertSame($error['line'],$exception->getLine());

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp