<?php
+/**
+ * SPDX-License-Identifier: GPL-2.0-only
+ *
+ * This file is part of Nominatim. (https://nominatim.org)
+ *
+ * Copyright (C) 2022 by the Nominatim developer community.
+ * For a full list of authors see the git log.
+ */
namespace Nominatim;
<pre><b>Var1:</b> <i>True</i></pre>
<pre><b>Var2:</b> <i>False</i></pre>
<pre><b>Var3:</b> 0</pre>
-<pre><b>Var4:</b> 'String'</pre>
-<pre><b>Var5:</b> 0 => 'one'
- 1 => 'two'
- 2 => 'three'</pre>
-<pre><b>Var6:</b> 'key' => 'value'
- 'key2' => 'value2'</pre>
+<pre><b>Var4:</b> 'String'</pre>
+<pre><b>Var5:</b> 0 => 'one'
+ 1 => 'two'
+ 2 => 'three'</pre>
+<pre><b>Var6:</b> 'key' => 'value'
+ 'key2' => 'value2'</pre>
<pre><b>Var7:</b> me as string</pre>
-<pre><b>Var8:</b> 'value', 'value2'</pre>
+<pre><b>Var8:</b> 'value', 'value2'</pre>
EOT
);
public function testDebugArray()
{
$this->expectOutputString(<<<EOT
-<pre><b>Arr0:</b> 'null'</pre>
-<pre><b>Arr1:</b> 'key1' => 'val1'
- 'key2' => 'val2'
- 'key3' => 'val3'</pre>
+<pre><b>Arr0:</b> 'null'</pre>
+<pre><b>Arr1:</b> 'key1' => 'val1'
+ 'key2' => 'val2'
+ 'key3' => 'val3'</pre>
EOT
);
<th><small>1</small></th>
</tr>
<tr>
- <td><pre>'one'</pre></td>
- <td><pre>'two'</pre></td>
+ <td><pre>'one'</pre></td>
+ <td><pre>'two'</pre></td>
</tr>
<tr>
- <td><pre>'three'</pre></td>
- <td><pre>'four'</pre></td>
+ <td><pre>'three'</pre></td>
+ <td><pre>'four'</pre></td>
</tr>
</table>
<b>Table4:</b>
<th><small>key3</small></th>
</tr>
<tr>
- <td><pre>'val1'</pre></td>
- <td><pre>'val2'</pre></td>
- <td><pre>'val3'</pre></td>
+ <td><pre>'val1'</pre></td>
+ <td><pre>'val2'</pre></td>
+ <td><pre>'val3'</pre></td>
</tr>
</table>
</tr>
<tr>
<td><pre>group1</pre></td>
- <td><pre>'val1'</pre></td>
- <td><pre>'val2'</pre></td>
+ <td><pre>'val1'</pre></td>
+ <td><pre>'val2'</pre></td>
</tr>
<tr>
<td><pre>group1</pre></td>
- <td><pre>'one'</pre></td>
- <td><pre>'two'</pre></td>
+ <td><pre>'one'</pre></td>
+ <td><pre>'two'</pre></td>
</tr>
<tr>
<td><pre>group2</pre></td>
- <td><pre>'val1'</pre></td>
- <td><pre>'val2'</pre></td>
+ <td><pre>'val1'</pre></td>
+ <td><pre>'val2'</pre></td>
</tr>
</table>
<b>Table4:</b>
</tr>
<tr>
<td><pre>group1</pre></td>
- <td><pre>'val1'</pre></td>
- <td><pre>'val2'</pre></td>
- <td><pre>'val3'</pre></td>
+ <td><pre>'val1'</pre></td>
+ <td><pre>'val2'</pre></td>
+ <td><pre>'val3'</pre></td>
</tr>
<tr>
<td><pre>group1</pre></td>
- <td><pre>'val1'</pre></td>
- <td><pre>'val2'</pre></td>
- <td><pre>'val3'</pre></td>
+ <td><pre>'val1'</pre></td>
+ <td><pre>'val2'</pre></td>
+ <td><pre>'val3'</pre></td>
</tr>
</table>