Пример #1
0
 public function testHasCorrectExpression()
 {
     $parent_expression = new Expression();
     $operation = new Operation();
     $operation->setParent($parent_expression);
     $this->assertEquals($parent_expression, $operation->getParent());
 }
Пример #2
0
 public function createChildOperation()
 {
     $operation = new Operation();
     $operation->setParent($this);
     $this->_operations[] = $operation;
     return $operation;
 }