/** * @JMS\VirtualProperty * @JMS\SerializedName("Images") * @JMS\XmlList(inline = false, entry = "Image") */ public function getElements() { return parent::getElements(); }
public function testGetElements() { $collection = new ImageUriCollection(); $collection->add(new ImageUri('http://host.com/img.jpg')); $this->assertEquals(1, count($collection->getElements())); }