public function testPropertyCollectionMayBeInjected() { $jsonLD = new Collection([], 'item/route'); $properties = new PropertyCollection(); $jsonLD->setProperties($properties); $this->assertSame($properties, $jsonLD->getProperties()); }