public function testLastKey()
{
// Array test for array
$jsonPath = new JSONPath(['a' => 'A', 'b' => 'B', 'c' => 'C']);
$lastKey = $jsonPath->lastKey();
$this->assertEquals('c', $lastKey);
// Array test for object
$jsonPath = new JSONPath((object) ['a' => 'A', 'b' => 'B', 'c' => 'C']);
$lastKey = $jsonPath->lastKey();
$this->assertEquals('c', $lastKey);
}