Skip to content

Commit

Permalink
add direction:ltr into Debugger::printVar()
Browse files Browse the repository at this point in the history
  • Loading branch information
saeideng committed Jun 30, 2018
1 parent ed8cc80 commit 96e6305
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Error/Debugger.php
Expand Up @@ -917,7 +917,7 @@ public static function printVar($var, $location = [], $showHtml = null)
$file = str_replace($search, '', $file);
}
$html = <<<HTML
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
%s
<pre class="cake-debug">
%s
Expand Down
10 changes: 5 additions & 5 deletions tests/TestCase/BasicsTest.php
Expand Up @@ -243,7 +243,7 @@ public function testDebug()
$this->assertSame($value, debug($value, true));
$result = ob_get_clean();
$expectedHtml = <<<EXPECTED
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
<span><strong>%s</strong> (line <strong>%d</strong>)</span>
<pre class="cake-debug">
&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;
Expand All @@ -257,7 +257,7 @@ public function testDebug()
debug('<div>this-is-a-test</div>', true, true);
$result = ob_get_clean();
$expected = <<<EXPECTED
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
<span><strong>%s</strong> (line <strong>%d</strong>)</span>
<pre class="cake-debug">
&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;
Expand All @@ -271,7 +271,7 @@ public function testDebug()
debug('<div>this-is-a-test</div>', true, false);
$result = ob_get_clean();
$expected = <<<EXPECTED
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
<pre class="cake-debug">
&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;
Expand All @@ -285,7 +285,7 @@ public function testDebug()
debug('<div>this-is-a-test</div>', null);
$result = ob_get_clean();
$expectedHtml = <<<EXPECTED
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
<span><strong>%s</strong> (line <strong>%d</strong>)</span>
<pre class="cake-debug">
&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;
Expand All @@ -310,7 +310,7 @@ public function testDebug()
debug('<div>this-is-a-test</div>', null, false);
$result = ob_get_clean();
$expectedHtml = <<<EXPECTED
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
<pre class="cake-debug">
&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;
Expand Down
10 changes: 5 additions & 5 deletions tests/TestCase/Error/DebuggerTest.php
Expand Up @@ -733,7 +733,7 @@ public function testPrintVar()
Debugger::printVar($value, ['file' => __FILE__, 'line' => __LINE__], true);
$result = ob_get_clean();
$expectedHtml = <<<EXPECTED
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
<span><strong>%s</strong> (line <strong>%d</strong>)</span>
<pre class="cake-debug">
&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;
Expand All @@ -747,7 +747,7 @@ public function testPrintVar()
Debugger::printVar('<div>this-is-a-test</div>', ['file' => __FILE__, 'line' => __LINE__], true);
$result = ob_get_clean();
$expected = <<<EXPECTED
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
<span><strong>%s</strong> (line <strong>%d</strong>)</span>
<pre class="cake-debug">
&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;
Expand All @@ -761,7 +761,7 @@ public function testPrintVar()
Debugger::printVar('<div>this-is-a-test</div>', [], true);
$result = ob_get_clean();
$expected = <<<EXPECTED
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
<pre class="cake-debug">
&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;
Expand All @@ -775,7 +775,7 @@ public function testPrintVar()
Debugger::printVar('<div>this-is-a-test</div>', ['file' => __FILE__, 'line' => __LINE__]);
$result = ob_get_clean();
$expectedHtml = <<<EXPECTED
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
<span><strong>%s</strong> (line <strong>%d</strong>)</span>
<pre class="cake-debug">
&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;
Expand All @@ -800,7 +800,7 @@ public function testPrintVar()
Debugger::printVar('<div>this-is-a-test</div>');
$result = ob_get_clean();
$expectedHtml = <<<EXPECTED
<div class="cake-debug-output">
<div class="cake-debug-output" style="direction:ltr">
<pre class="cake-debug">
&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;
Expand Down

0 comments on commit 96e6305

Please sign in to comment.