function testGetWithDefaultValue() { $object = new TestOneTableObject(); try { $object->get('foo'); $this->fail(); } catch (Exception $e) { $this->pass(); } $this->assertEqual($object->get('foo', 'bar'), 'bar'); }