Skip to content
Permalink
Browse files

add direction:ltr into Debugger::printVar()

  • Loading branch information...
saeideng committed Jun 30, 2018
1 parent ed8cc80 commit 96e6305c99ac962c2579d77833662213b3e53803
Showing with 11 additions and 11 deletions.
  1. +1 −1 src/Error/Debugger.php
  2. +5 −5 tests/TestCase/BasicsTest.php
  3. +5 −5 tests/TestCase/Error/DebuggerTest.php
@@ -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
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;

0 comments on commit 96e6305

Please sign in to comment.
You can’t perform that action at this time.