Skip to content

Commit 52db878

Browse files
committed
Format var_dump depends on platform?!
1 parent 40d3b88 commit 52db878

File tree

2 files changed

+23
-37
lines changed

2 files changed

+23
-37
lines changed

test/BulkTest.php

Lines changed: 21 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -20,42 +20,27 @@ public function testBulk()
2020
$output = $this->getActualOutputForAssertion();
2121
$expected = <<< EOL
2222
Start
23-
array(5) {
24-
["tst_c00"]=>
25-
int(1)
26-
["tst_c01"]=>
27-
string(1) "a"
28-
["tst_c02"]=>
29-
string(1) "b"
30-
["tst_c03"]=>
31-
string(2) "c1"
32-
["tst_c04"]=>
33-
string(1) "d"
34-
}
35-
array(5) {
36-
["tst_c00"]=>
37-
int(2)
38-
["tst_c01"]=>
39-
string(1) "a"
40-
["tst_c02"]=>
41-
string(1) "b"
42-
["tst_c03"]=>
43-
string(2) "c2"
44-
["tst_c04"]=>
45-
string(1) "d"
46-
}
47-
array(5) {
48-
["tst_c00"]=>
49-
int(3)
50-
["tst_c01"]=>
51-
string(1) "a"
52-
["tst_c02"]=>
53-
string(1) "b"
54-
["tst_c03"]=>
55-
string(2) "c3"
56-
["tst_c04"]=>
57-
string(1) "d"
58-
}
23+
array (
24+
'tst_c00' => 1,
25+
'tst_c01' => 'a',
26+
'tst_c02' => 'b',
27+
'tst_c03' => 'c1',
28+
'tst_c04' => 'd',
29+
)
30+
array (
31+
'tst_c00' => 2,
32+
'tst_c01' => 'a',
33+
'tst_c02' => 'b',
34+
'tst_c03' => 'c2',
35+
'tst_c04' => 'd',
36+
)
37+
array (
38+
'tst_c00' => 3,
39+
'tst_c01' => 'a',
40+
'tst_c02' => 'b',
41+
'tst_c03' => 'c3',
42+
'tst_c04' => 'd',
43+
)
5944
Stop
6045
EOL;
6146
self::assertSame(trim($expected), trim($output));

test/TestBulkHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class TestBulkHandler implements BulkHandler
1616
*/
1717
public function row(array $row): void
1818
{
19-
var_dump($row);
19+
var_export($row);
20+
echo PHP_EOL;
2021
}
2122

2223
//--------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)