contains() public method

public contains ( $item ) : boolean
return boolean whether the stack contains the item
Example #1
0
 public function testContains()
 {
     $stack = new TStack(array(1, 2, 3));
     self::assertEquals(true, $stack->contains(2));
     self::assertEquals(false, $stack->contains(4));
 }