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

Commit12a4cfe

Browse files
Merge branch '3.2'
* 3.2: Fix test skip tests with failure and error states too hide stack trace of expected deprecation failures
2 parentsf71c699 +b703f32 commit12a4cfe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎src/Symfony/Bridge/PhpUnit/SymfonyTestsListener.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class SymfonyTestsListener extends \PHPUnit_Framework_BaseTestListener
3434
*/
3535
publicfunction__construct(array$mockedNamespaces =array())
3636
{
37+
\PHPUnit_Util_Blacklist::$blacklistedClassNames['\Symfony\Bridge\PhpUnit\SymfonyTestsListener'] =1;
38+
3739
$warn =false;
3840
foreach ($mockedNamespacesas$type =>$namespaces) {
3941
if (!is_array($namespaces)) {
@@ -175,7 +177,7 @@ public function endTest(\PHPUnit_Framework_Test $test, $time)
175177
if ($this->expectedDeprecations) {
176178
restore_error_handler();
177179

178-
if (!in_array($test->getStatus(),array(\PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED, \PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE),true)) {
180+
if (!in_array($test->getStatus(),array(\PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED, \PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE, \PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE, \PHPUnit_Runner_BaseTestRunner::STATUS_ERROR),true)) {
179181
try {
180182
$prefix ="@expectedDeprecation:\n";
181183
$test->assertStringMatchesFormat($prefix.implode("\n",$this->expectedDeprecations),$prefix.implode("\n",$this->gatheredDeprecations));

‎src/Symfony/Component/VarDumper/Tests/Caster/ExceptionCasterTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function testHtmlDump()
160160
-<span class=sf-dump-private title="Private property defined in class:&#10;`Exception`">trace</span>: {<samp>
161161
<span class=sf-dump-meta title="%sExceptionCasterTest.php
162162
Stack level %d."><span class=sf-dump-ellipsis>%sVarDumper%eTests</span>%eCaster%eExceptionCasterTest.php</span>: <span class=sf-dump-num>26</span>
163-
&hellip;12
163+
&hellip;%d
164164
</samp>}
165165
</samp>}
166166
</bar>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp