Skip to content

Commit 87909c0

Browse files
committed
UnitTest fix
1 parent 767b5cf commit 87909c0

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

tests/Debug/Plugin/Method/BasicTest.php

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,7 @@ public function testError()
359359
'error',
360360
)),
361361
'firephp' => 'X-Wf-1-1-1-3: %d|[{"File":"%s","Label":"a string","Line":%d,"Type":"ERROR"},[[],{"___class_name":"stdClass"},"Resource id #%d: stream"]]|',
362-
'html' => '<li class="m_error" data-detect-files="true" data-file="' . \realpath(__DIR__ . '/../../DebugTestFramework.php') . '" data-line="%d"><span class="no-quotes t_string">a string</span>, <span class="t_array"><span class="t_keyword">array</span><span class="t_punct">()</span></span>, <div class="groupByInheritance prop-only t_object" data-accessible="public"><span class="t_identifier" data-type-more="className"><span class="classname">stdClass</span></span>
363-
<dl class="object-inner">
364-
<dt class="properties">no properties</dt>
365-
</dl>
366-
</div>, <span class="t_resource">Resource id #%d: stream</span></li>',
362+
'html' => '<li class="m_error" data-detect-files="true" data-file="' . \realpath(__DIR__ . '/../../DebugTestFramework.php') . '" data-line="%d"><span class="no-quotes t_string">a string</span>, <span class="t_array"><span class="t_keyword">array</span><span class="t_punct">()</span></span>, <div class="t_object"><span class="t_identifier" data-type-more="className"><span class="classname">stdClass</span></span><span class="t_punct">()</span></div>, <span class="t_resource">Resource id #%d: stream</span></li>',
367363
'script' => 'console.error("a string",[],{"___class_name":"stdClass"},"Resource id #%i: stream","%s: line %d");',
368364
'text' => '⦻ a string, array(), stdClass(), Resource id #%i: stream',
369365
'streamAnsi' => "\e[38;5;9m⦻ a string\e[38;5;245m, \e[38;5;9m\e[38;5;45marray\e[38;5;245m(\e[38;5;9m\e[38;5;245m)\e[38;5;9m\e[38;5;245m, \e[38;5;9m\e[1mstdClass\e[22m\e[38;5;245m()\e[38;5;9m\e[38;5;245m, \e[38;5;9mResource id #%d: stream\e[0m",
@@ -423,11 +419,7 @@ public function testInfo()
423419
'info',
424420
)),
425421
'firephp' => 'X-Wf-1-1-1-5: %d|[{"Label":"a string","Type":"INFO"},[[],{"___class_name":"stdClass"},"Resource id #%d: stream"]]|',
426-
'html' => '<li class="m_info"><span class="no-quotes t_string">a string</span>, <span class="t_array"><span class="t_keyword">array</span><span class="t_punct">()</span></span>, <div class="groupByInheritance prop-only t_object" data-accessible="public"><span class="t_identifier" data-type-more="className"><span class="classname">stdClass</span></span>
427-
<dl class="object-inner">
428-
<dt class="properties">no properties</dt>
429-
</dl>
430-
</div>, <span class="t_resource">Resource id #%d: stream</span></li>',
422+
'html' => '<li class="m_info"><span class="no-quotes t_string">a string</span>, <span class="t_array"><span class="t_keyword">array</span><span class="t_punct">()</span></span>, <div class="t_object"><span class="t_identifier" data-type-more="className"><span class="classname">stdClass</span></span><span class="t_punct">()</span></div>, <span class="t_resource">Resource id #%d: stream</span></li>',
431423
'script' => 'console.info("a string",[],{"___class_name":"stdClass"},"Resource id #%d: stream");',
432424
'text' => 'ℹ a string, array(), stdClass(), Resource id #%d: stream',
433425
// 'wamp' @todo
@@ -480,11 +472,7 @@ public function testLog()
480472
'',
481473
)),
482474
'firephp' => 'X-Wf-1-1-1-5: %d|[{"Label":"a string","Type":"LOG"},[[],{"___class_name":"stdClass"},"Resource id #%d: stream"]]|',
483-
'html' => '<li class="m_log"><span class="no-quotes t_string">a string</span>, <span class="t_array"><span class="t_keyword">array</span><span class="t_punct">()</span></span>, <div class="groupByInheritance prop-only t_object" data-accessible="public"><span class="t_identifier" data-type-more="className"><span class="classname">stdClass</span></span>
484-
<dl class="object-inner">
485-
<dt class="properties">no properties</dt>
486-
</dl>
487-
</div>, <span class="t_resource">Resource id #%d: stream</span></li>',
475+
'html' => '<li class="m_log"><span class="no-quotes t_string">a string</span>, <span class="t_array"><span class="t_keyword">array</span><span class="t_punct">()</span></span>, <div class="t_object"><span class="t_identifier" data-type-more="className"><span class="classname">stdClass</span></span><span class="t_punct">()</span></div>, <span class="t_resource">Resource id #%d: stream</span></li>',
488476
'script' => 'console.log("a string",[],{"___class_name":"stdClass"},"Resource id #%d: stream");',
489477
'streamAnsi' => "a string\e[38;5;245m, \e[0m\e[38;5;45marray\e[38;5;245m(\e[0m\e[38;5;245m)\e[0m\e[38;5;245m, \e[0m\e[1mstdClass\e[22m\e[38;5;245m()\e[0m\e[38;5;245m, \e[0mResource id #%d: stream",
490478
'text' => 'a string, array(), stdClass(), Resource id #%d: stream',
@@ -667,11 +655,7 @@ public function testWarn()
667655
'warn',
668656
)),
669657
'firephp' => 'X-Wf-1-1-1-5: %d|[{"File":"' . \realpath(__DIR__ . '/../../DebugTestFramework.php') . '","Label":"a string","Line":%d,"Type":"WARN"},[[],{"___class_name":"stdClass"},"Resource id #%d: stream"]]|',
670-
'html' => '<li class="m_warn" data-detect-files="true" data-file="' . \realpath(__DIR__ . '/../../DebugTestFramework.php') . '" data-line="%d"><span class="no-quotes t_string">a string</span>, <span class="t_array"><span class="t_keyword">array</span><span class="t_punct">()</span></span>, <div class="groupByInheritance prop-only t_object" data-accessible="public"><span class="t_identifier" data-type-more="className"><span class="classname">stdClass</span></span>
671-
<dl class="object-inner">
672-
<dt class="properties">no properties</dt>
673-
</dl>
674-
</div>, <span class="t_resource">Resource id #%d: stream</span></li>',
658+
'html' => '<li class="m_warn" data-detect-files="true" data-file="' . \realpath(__DIR__ . '/../../DebugTestFramework.php') . '" data-line="%d"><span class="no-quotes t_string">a string</span>, <span class="t_array"><span class="t_keyword">array</span><span class="t_punct">()</span></span>, <div class="t_object"><span class="t_identifier" data-type-more="className"><span class="classname">stdClass</span></span><span class="t_punct">()</span></div>, <span class="t_resource">Resource id #%d: stream</span></li>',
675659
'script' => 'console.warn("a string",[],{"___class_name":"stdClass"},"Resource id #%d: stream","' . \realpath(__DIR__ . '/../../DebugTestFramework.php') . ': line %d");',
676660
'text' => '⚠ a string, array(), stdClass(), Resource id #%d: stream',
677661
// 'wamp' => @todo

0 commit comments

Comments
 (0)