Skip to content

Commit 856d55e

Browse files
committed
fix DumpDataCollectorTest after CS changes
Modify the expected line value which was affected by the move of the `__LINE__` constant in #12872 to make tests pass again.
1 parent e5b0ee1 commit 856d55e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/DataCollector/DumpDataCollectorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testDump()
3030
$this->assertSame('dump', $collector->getName());
3131

3232
$collector->dump($data);
33-
$line = __LINE__;
33+
$line = __LINE__ - 1;
3434
$this->assertSame(1, $collector->getDumpsCount());
3535

3636
$dump = $collector->getDumps('html');
@@ -63,7 +63,7 @@ public function testFlush()
6363
$data = new Data(array(array(456)));
6464
$collector = new DumpDataCollector();
6565
$collector->dump($data);
66-
$line = __LINE__;
66+
$line = __LINE__ - 1;
6767

6868
ob_start();
6969
$collector = null;

0 commit comments

Comments
 (0)