caller = [ 'line' => 17, 'file' => __FILE__, 'args' => [], 'type' => '->', 'class' => __CLASS__, 'function' => __FUNCTION__, ]; } public function testDebugVariable() { $view = new DebugView(); $this->assertEquals( <<

Debug (DebugViewTest.php:17 - SilverStripe\\Dev\\Tests\\DebugViewTest::setUp())

string
EOS , $view->debugVariable('string', $this->caller) ); $this->assertEquals( <<

Debug (DebugViewTest.php:17 - SilverStripe\\Dev\\Tests\\DebugViewTest::setUp())

EOS , $view->debugVariable([ 'key' => 'value', 'another' => 'text' ], $this->caller) ); $this->assertEquals( <<

Debug (DebugViewTest.php:17 - SilverStripe\\Dev\\Tests\\DebugViewTest::setUp())

SilverStripe\\Dev\\Tests\\DebugViewTest\\ObjectWithDebug::debug() custom content EOS , $view->debugVariable(new ObjectWithDebug(), $this->caller) ); $this->assertEquals( <<

Debug (DebugViewTest.php:17 - SilverStripe\\Dev\\Tests\\DebugViewTest::setUp())

SilverStripe\\Dev\\Tests\\DebugViewTest\\ObjectWithDebug
EOS , $view->debugVariable(ObjectWithDebug::class, $this->caller) ); } }