コード例 #1
0
 function testGetWithDefaultValue()
 {
     $object = new TestOneTableObject();
     try {
         $object->get('foo');
         $this->fail();
     } catch (Exception $e) {
         $this->pass();
     }
     $this->assertEqual($object->get('foo', 'bar'), 'bar');
 }