예제 #1
0
 public function testAddObject()
 {
     $obj = RTObject::alloc()->init();
     $originalCount = self::$array->count();
     self::$array->addObject($obj);
     $this->assertEquals($originalCount + 1, self::$array->count());
 }
예제 #2
0
 public function testDescription()
 {
     $obj = RTObject::alloc()->init();
     $tmp = json_encode($obj);
     $this->assertEquals($tmp, $obj->description());
 }