/** * @covers phpDocumentor\Descriptor\ConstantDescriptor::getTypes * @covers phpDocumentor\Descriptor\ConstantDescriptor::setTypes */ public function testSetAndGetTypes() { $this->assertEquals(new Collection(), $this->fixture->getTypes()); $expected = new Collection(array(1)); $this->fixture->setTypes($expected); $this->assertSame($expected, $this->fixture->getTypes()); }
/** * @covers phpDocumentor\Descriptor\ConstantDescriptor::getTypes * @covers phpDocumentor\Descriptor\ConstantDescriptor::setTypes */ public function testSetAndGetTypes() { $this->assertSame(array(), $this->fixture->getTypes()); $this->fixture->setTypes(array(1)); $this->assertSame(array(1), $this->fixture->getTypes()); }