private function check_map(MapShape $shape, $value) { if (!$this->checkAssociativeArray($value)) { return; } $values = $shape->getValue(); foreach ($value as $key => $v) { $this->path[] = $key; $this->dispatch($values, $v); array_pop($this->path); } }
public function testReturnsEmptyKey() { $s = new MapShape([], new ShapeMap([])); $this->assertInstanceOf('Vws\\Api\\Shape', $s->getKey()); }