예제 #1
0
 public function testSet()
 {
     $operator = new Operator();
     $operator->set('fieldName', 1);
     $operator->set('fieldName', 2);
     $operator->set('fieldName', 3);
     $this->assertEquals(array('$set' => array('fieldName' => 3)), $operator->getAll());
 }