public function get($var)
{
return $this->{$var};
}
public function testInit() { $recordSet = new MockRecordSet(); $this->assertTrue(is_a($recordSet, '\\lithium\\data\\collection\\RecordSet')); $recordSet = new MockRecordSet(array('model' => 'lithium\\tests\\mocks\\data\\MockModel', 'handle' => new MockAdapter(), 'result' => true, 'exists' => true)); $this->assertEqual('lithium\\tests\\mocks\\data\\MockModel', $recordSet->get('_model')); $this->assertTrue($recordSet->get('_result')); }