Example #1
0
 public function testRemove()
 {
     $key = 'one';
     $value = new \stdClass();
     $this->object->put($key, $value);
     $actual = $this->readAttribute($this->object, 'elements');
     $this->assertEquals(array($key => $value), $actual);
     $this->object->remove($key);
     $actual = $this->readAttribute($this->object, 'elements');
     $this->assertEmpty($actual);
 }