Exemple #1
0
 public function testContains()
 {
     $queue = new CQueue(array(1, 2, 3));
     $this->assertEquals(true, $queue->contains(2));
     $this->assertEquals(false, $queue->contains(4));
 }
 public function testContains()
 {
     $queue = new CQueue(array(1, 2, 3));
     $this->assertTrue($queue->contains(2));
     $this->assertFalse($queue->contains(4));
 }