/** * @depends testSet * @param TreeMap * @return void */ public function testRemove(TreeMap $mapObject) { $this->assertTrue($mapObject->remove(self::$mapKey[1])); $this->assertEquals(count($mapObject), 2); $this->assertEquals($mapObject->get(self::$mapKey[0]), self::$mapValue[0]); $this->assertNull($mapObject->get(self::$mapKey[1])); $this->assertInternalType('array', $mapObject->get(self::$mapKey[2])); $this->assertNull($mapObject->get(self::$mapKey[3])); }