/** * Evaluate operations * * @return mixed the last operation result if the operation is a final operation, NULL otherwise */ protected function evaluateOperations() { while ($op = array_shift($this->operations)) { $operation = $this->operationResolver->resolveOperation($op['name'], $this->context); $lastOperationResult = $operation->evaluate($this, $op['arguments']); } return $lastOperationResult; }
/** * @test */ public function higherPriorityOverridesLowerPriority() { $this->assertInstanceOf(Fixtures\ExampleFinalOperationWithHigherPriority::class, $this->operationResolver->resolveOperation('exampleFinalOperation', [])); }