Beispiel #1
0
 public function testGet()
 {
     $operator = new Operator();
     $operator->push('key', 42);
     $this->assertEquals(array('key' => 42), $operator->get('$push'));
     $this->assertEquals(42, $operator->get('$push', 'key'));
 }