Example #1
0
 public function testIsEmpty()
 {
     $elements = $this->readAttribute($this->object, 'elements');
     $this->assertEquals(empty($elements), $this->object->isEmpty());
     $this->object->add(new \stdClass());
     $elements = $this->readAttribute($this->object, 'elements');
     $this->assertEquals(empty($elements), $this->object->isEmpty());
 }