public function testGetTags() { $contact = new Contact(); $this->assertInstanceOf('Doctrine\\Common\\Collections\\ArrayCollection', $contact->getTags()); $this->assertTrue($contact->getTags()->isEmpty()); $contact->setTags(array('tag')); $this->assertEquals(array('tag'), $contact->getTags()); }