From 1917b703c62d5f3b2b93260c3e58ae60db7f579b Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 8 Dec 2014 18:00:45 +0100 Subject: [PATCH] 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. --- .../HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php b/src/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php index 967a739286..5c8fdb6ed1 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php @@ -30,7 +30,7 @@ class DumpDataCollectorTest extends \PHPUnit_Framework_TestCase $this->assertSame('dump', $collector->getName()); $collector->dump($data); - $line = __LINE__; + $line = __LINE__ - 1; $this->assertSame(1, $collector->getDumpsCount()); $dump = $collector->getDumps('html'); @@ -63,7 +63,7 @@ class DumpDataCollectorTest extends \PHPUnit_Framework_TestCase $data = new Data(array(array(456))); $collector = new DumpDataCollector(); $collector->dump($data); - $line = __LINE__; + $line = __LINE__ - 1; ob_start(); $collector = null;