public function testReset() { $operator = new Operator(); $operator->push('key1', 42); $operator->unsetField('key2'); $operator->reset(); $this->assertEquals(array(), $operator->getAll()); }