/** * @expectedException \CollectionType\Exception\InvalidTypeException * * @covers CollectionType\Map\MapAbstract::equals * @covers CollectionType\Map\MapAbstract::__construct * @covers CollectionType\Common\KeyTypeTrait::validateKeyType * @covers CollectionType\Common\ValueTypeTrait::validateValueType */ public function testEqualsForTheDifferentValueType() { $dummyKeyType = $this->prophesize('CollectionType\\TypeValidator\\StringTypeValidator'); $dummyKeyType->willImplement('CollectionType\\TypeValidator\\TypeValidatorInterface'); $dummyValueType = $this->prophesize('CollectionType\\TypeValidator\\IntegerTypeValidator'); $dummyValueType->willImplement('CollectionType\\TypeValidator\\TypeValidatorInterface'); $anotherMap = new MapAbstractFake($dummyKeyType->reveal(), $dummyValueType->reveal()); $result = $this->map->equals($anotherMap); $this->assertTrue($result); }