예제 #1
0
 public function testChecksIfHasValue()
 {
     $this->assertFalse($this->coll->hasValue('value'));
     $this->coll->add('test', 'value');
     $this->assertEquals('test', $this->coll->hasValue('value'));
     $this->coll->add('test2', 'value2');
     $this->assertEquals('test', $this->coll->hasValue('value'));
     $this->assertEquals('test2', $this->coll->hasValue('value2'));
     $this->assertFalse($this->coll->hasValue('val'));
 }