Lines Matching refs:operation

248         foreach ($procedure as $operation) {
249 …$lastOperationResult = $this->processOperation($operation, $lastOperationResult, $context, $name, …
256 * @param object $operation
264 …public function processOperation($operation, $lastOperationResult, array &$context, string $testNa… argument
266 $operationName = array_keys((array)$operation)[0];
269 …return $this->operationDo($operation->{$operationName}, $lastOperationResult, $context, $testName,…
273 …return $this->operationIsFalse($operation->{$operationName}, $lastOperationResult, $context, $test…
277 …return $this->operationIsTrue($operation->{$operationName}, $lastOperationResult, $context, $testN…
281 …return $this->operationMatch($operation->{$operationName}, $lastOperationResult, $context, $testNa…
285 …return $this->operationGreaterThanOrEqual($operation->{$operationName}, $lastOperationResult, $con…
289 …return $this->operationGreaterThan($operation->{$operationName}, $lastOperationResult, $context, $…
293 …return $this->operationLessThanOrEqual($operation->{$operationName}, $lastOperationResult, $contex…
297 …return $this->operationLessThan($operation->{$operationName}, $lastOperationResult, $context, $tes…
301 …return $this->operationLength($operation->{$operationName}, $lastOperationResult, $context, $testN…
305 …return $this->operationSet($operation->{$operationName}, $lastOperationResult, $context, $testName…
309 … return $this->operationSkip($operation->{$operationName}, $lastOperationResult, $testName);
318 * @param object $operation
328 …public function operationDo($operation, $lastOperationResult, &$context, string $testName, bool $a… argument
335 if ('catch' === key($operation)) {
336 $expectedError = current($operation);
337 next($operation);
341 if ('warnings' === key($operation)) {
342 $expectedWarnings = current($operation);
343 next($operation);
347 if ('headers' === key($operation)) {
348 $headers = $this->formatHeaders(current($operation));
349 next($operation);
352 $endpointInfo = explode('.', key($operation));
357 $endpointParams = $this->replaceWithContext(current($operation), $context);
544 * @param string $operation
549 …public function operationIsFalse(string $operation, $lastOperationResult, &$context, string $testN… argument
551 $value = (bool) $this->resolveValue($lastOperationResult, $operation, $context);
553 ."$operation was [".print_r($value, true)."]"
563 * @param string $operation
567 …public function operationIsTrue(string $operation, $lastOperationResult, &$context, string $testNa… argument
569 $value = $this->resolveValue($lastOperationResult, $operation, $context);
572 ."$operation was [".print_r($value, true)."]"
585 * @param object $operation
589 public function operationMatch($operation, $lastOperationResult, &$context, string $testName) argument
591 $key = key($operation);
615 $expected = $this->replaceWithContext(current($operation), $context);
636 * @param object $operation
640 …public function operationGreaterThanOrEqual($operation, $lastOperationResult, &$context, string $t… argument
642 $value = $this->resolveValue($lastOperationResult, key($operation), $context);
643 $expected = current($operation);
653 * @param object $operation
657 …public function operationGreaterThan($operation, $lastOperationResult, &$context, string $testName) argument
659 $value = $this->resolveValue($lastOperationResult, key($operation), $context);
660 $expected = current($operation);
670 * @param object $operation
674 …public function operationLessThanOrEqual($operation, $lastOperationResult, &$context, string $test… argument
676 $value = $this->resolveValue($lastOperationResult, key($operation), $context);
677 $expected = current($operation);
687 * @param object $operation
691 public function operationLessThan($operation, $lastOperationResult, &$context, string $testName) argument
693 $value = $this->resolveValue($lastOperationResult, key($operation), $context);
694 $expected = current($operation);
704 * @param object $operation
708 public function operationLength($operation, $lastOperationResult, &$context, string $testName) argument
710 $value = $this->resolveValue($lastOperationResult, key($operation), $context);
711 $expected = current($operation);
721 * @param object $operation
726 public function operationSet($operation, $lastOperationResult, &$context, string $testName) argument
728 $key = key($operation);
730 $variable = current($operation);
744 public function operationSkip($operation, $lastOperationResult, string $testName) argument
746 if (is_object($operation) !== true) {
750 if (property_exists($operation, 'features')) {
751 if (is_array($operation->features)) {
752 …if (count(array_intersect($operation->features, static::$supportedFeatures)) != count($operation->…
753 …kipped(sprintf('Feature(s) %s not supported in test "%s"', json_encode($operation->features), $tes…
756 if (!in_array($operation->features, static::$supportedFeatures, true)) {
757 …kipped(sprintf('Feature(s) %s not supported in test "%s"', json_encode($operation->features), $tes…
762 if (property_exists($operation, 'version')) {
763 $version = $operation->version;
768 …(sprintf('Skip test "%s", as all versions should be skipped (%s)', $testName, $operation->reason));
780 …t "%s", as version %s should be skipped (%s)', $testName, static::$esVersion, $operation->reason));