Skip to content

Commit

Permalink
unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bkdotcom committed Nov 6, 2023
1 parent 5116ad3 commit 85b1f10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/Debug/DebugTestFramework.php
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ private function tstMethodTest($test, LogEntry $logEntry, $outputExpect, $output
$this->assertStringMatchesFormat(\trim($outputExpect), \trim($output), $message);
} catch (\Exception $e) {
echo $test . ':' . "\n";
echo 'dump: ' . \bdk\Debug\Utility\Utf8::dump($actual) . "\n";
echo $test === 'streamAnsi'
? 'expect: ' . \str_replace("\e", '\e', $outputExpect) . "\n\n"
. 'actual: ' . \str_replace("\e", '\e', $output) . "\n\n"
Expand Down
2 changes: 1 addition & 1 deletion tests/Debug/Type/ObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ public function testAnonymousClass()
<dt class="constants">constants</dt>
<dd class="constant public"><span class="t_modifier_public">public</span> <span class="t_identifier">TWELVE</span> <span class="t_operator">=</span> <span class="t_int">12</span></dd>
<dt class="properties">properties</dt>
<dd class="inherited property public" data-inherited-from="' . (PHP_VERSION_ID < 80000 ? 'class' : 'stdClass') . '@anonymous' . "\x00" . $filepath . ':' . $line . '$%S"><span class="t_modifier_public">public</span> <span class="t_identifier">thing</span> <span class="t_operator">=</span> <span class="t_string">hammer</span></dd>
<dd class="inherited property public" data-inherited-from="' . (PHP_VERSION_ID < 80000 ? 'class' : 'stdClass') . '@anonymous' . "\x00" . $filepath . '%S"><span class="t_modifier_public">public</span> <span class="t_identifier">thing</span> <span class="t_operator">=</span> <span class="t_string">hammer</span></dd>
<dd class="debug-value property"><span class="t_modifier_debug">debug</span> <span class="t_type">string</span> <span class="t_identifier">file</span> <span class="t_operator">=</span> <span class="t_string">' . $filepath . '</span></dd>
<dd class="debug-value property"><span class="t_modifier_debug">debug</span> <span class="t_type">int</span> <span class="t_identifier">line</span> <span class="t_operator">=</span> <span class="t_int">' . $line . '</span></dd>
<dt class="methods">methods</dt>
Expand Down

0 comments on commit 85b1f10

Please sign in to comment.