caller = [ 'line' => 17, 'file' => __FILE__, 'args' => [], 'type' => '->', 'class' => __CLASS__, 'function' => __FUNCTION__, ]; } public function testDebugVariable() { $view = new CliDebugView(); $this->assertEquals( <<debugVariable('string', $this->caller) ); $this->assertEquals( <<debugVariable([ 'key' => 'value', 'another' => 'text' ], $this->caller) ); $this->assertEquals( <<debugVariable(new ObjectWithDebug(), $this->caller) ); $this->assertEquals( <<debugVariable(ObjectWithDebug::class, $this->caller) ); } }