public function testSimpleMapMultiplePropsWithListIdNeedleObjectDataButWithMax() { //Arrange $data = new \stdClass(); $data->Name = "foobar"; $data->Idiot = "true"; $data->Animals = array("5", "1"); $elephant = new \stdClass(); $elephant->id = 5; $elephant->Name = "Elephant"; $cat = new \stdClass(); $cat->id = 1; $cat->Name = "Cat"; $animalList = array($elephant, $cat); $vars = get_defined_vars(); //Act $got = \BTRSchemeMap::Map($data, __DIR__ . "/sample2.json", $vars); //Assert $this->assertTrue($got->Name === "foobar"); $this->assertTrue(count($got->Animals) === 1); $this->assertTrue($got->Animals[0]->Name === "Elephant"); }