public function testReturnsErrorsShapeArray() { $o = new Operation(['errors' => [['shape' => 'a'], ['shape' => 'b']]], new ShapeMap(['a' => ['type' => 'structure'], 'b' => ['type' => 'list']])); $e = $o->getErrors(); $this->assertInternalType('array', $e); $this->assertInstanceOf('Vws\\Api\\Shape', $e[0]); $this->assertInstanceOf('Vws\\Api\\Shape', $e[1]); $this->assertEquals('structure', $e[0]->getType()); $this->assertEquals('list', $e[1]->getType()); }