public function testContains() { $col = new PropelCollection(); $this->assertFalse($col->contains('foo_1'), 'contains() returns false on an empty collection'); $data = array('bar1', 'bar2', 'bar3'); $col = new PropelCollection($data); $this->assertTrue($col->contains('bar1'), 'contains() returns true when the key exists'); $this->assertFalse($col->contains('bar4'), 'contains() returns false when the key does not exist'); }