/** * @it contains location information that only stringifys start/end */ public function testConvertToArray() { $source = new Source('{ id }'); $result = Parser::parse($source); $this->assertEquals(['start' => 0, 'end' => '6'], TestUtils::locationToArray($result->loc)); }