/**
  * Сравнить Operation с ожидаемым массивом значений
  */
 private function assertOperation(array $expected, Operation $op)
 {
     ksort($expected);
     $actual = array_intersect_key($op->toArray(false), $expected);
     ksort($actual);
     $this->assertEquals($expected, $actual);
 }
 /**
  * converts the operation object to an array
  *
  * @return arrray|NULL
  * @access public
  */
 public function toArray()
 {
     if (!is_null($this->_operation)) {
         $test = array();
         $this->_operation->toArray($test);
         return $test;
     } else {
         return null;
     }
 }