public function testCreateEnumCollection()
{
$enum1 = $this->getMock('Protobuf\\Enum', [], ['E1', 1]);
$enum2 = $this->getMock('Protobuf\\Enum', [], ['E2', 2]);
$collection = new EnumCollection([$enum1, $enum2]);
$this->assertCount(2, $collection);
$this->assertEquals([$enum1, $enum2], $collection->getArrayCopy());
}