contains() public method

This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false.
public contains ( $key ) : boolean
return boolean whether the map contains an item with the specified key
Exemplo n.º 1
0
 public function testContains()
 {
     $collection = new TAttributeCollection();
     self::assertEquals(false, $collection->contains('Property'));
     $collection->Property = 'value';
     self::assertEquals(true, $collection->contains('Property'));
 }