public function testLinkCollectionMayBeInjected() { $hal = new HalCollection(array(), 'item/route'); $links = new LinkCollection(); $hal->setLinks($links); $this->assertSame($links, $hal->getLinks()); }