public function testThrowsAnExceptionIfUsingCurrentOutOfACollection() { $data = [\stdClass::class => ['dummy' => ['foo' => '<current()>']]]; $this->loader->loadData($data); }