Exemplo n.º 1
0
 /**
  * Test removing element from array
  *
  * @return void
  */
 public function testRemove()
 {
     $success = $this->collection->remove(3);
     $this->assertTrue($success);
     $this->assertCount(2, $this->collection);
     $this->assertFalse($this->collection->contains(3));
 }
 /**
  * Test validating collection elements exist
  *
  * @return void
  */
 public function testContains()
 {
     $this->assertTrue($this->collection->contains(3));
     $this->assertFalse($this->collection->contains(7));
 }