public function testRemoveLast()
 {
     $this->map->set('foo', 'bar', 'value');
     $this->map->remove('foo', 'bar');
     $this->assertFalse($this->map->contains('foo'));
     $this->assertFalse($this->map->contains('foo', 'bar'));
     $this->setExpectedException('\\OutOfBoundsException');
     $this->map->listByPrimaryKey('foo');
 }
 /**
  * Removes a type descriptor.
  *
  * This method ignores non-existing type descriptors.
  *
  * @param string $typeName    The name of the type.
  * @param string $packageName The name of the package containing the type.
  */
 public function remove($typeName, $packageName)
 {
     $this->map->remove($typeName, $packageName);
 }
Пример #3
0
 /**
  * Removes a path mapping.
  *
  * This method ignores non-existing path mappings.
  *
  * @param string $repositoryPath The repository path of the mapping.
  * @param string $moduleName     The module containing the mapping.
  */
 public function remove($repositoryPath, $moduleName)
 {
     $this->map->remove($repositoryPath, $moduleName);
 }
 /**
  * Removes a path mapping.
  *
  * This method ignores non-existing path mappings.
  *
  * @param string $repositoryPath The repository path of the mapping.
  * @param string $packageName    The package containing the mapping.
  */
 public function remove($repositoryPath, $packageName)
 {
     $this->map->remove($repositoryPath, $packageName);
 }
 /**
  * Removes a type descriptor.
  *
  * This method ignores non-existing type descriptors.
  *
  * @param string $typeName   The name of the type.
  * @param string $moduleName The name of the module containing the type.
  */
 public function remove($typeName, $moduleName)
 {
     $this->map->remove($typeName, $moduleName);
 }