summaryrefslogtreecommitdiff
path: root/vendor/phpunit/phpunit/src/Framework/Exception
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/phpunit/phpunit/src/Framework/Exception')
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/ActualValueIsNotAnObjectException.php32
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/AssertionFailedError.php24
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/CodeCoverageException.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotAcceptParameterTypeException.php38
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php37
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php37
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareParameterTypeException.php37
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotExistException.php37
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/CoveredCodeNotExecutedException.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/Error.php24
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/Exception.php81
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/ExpectationFailedException.php42
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/IncompleteTestError.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/InvalidArgumentException.php46
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/InvalidCoversTargetException.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/InvalidDataProviderException.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/MissingCoversAnnotationException.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/NoChildTestSuiteException.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/OutputError.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/PHPTAssertionFailedError.php32
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/RiskyTestError.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/SkippedTestError.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/SkippedTestSuiteError.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/SyntheticError.php61
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/SyntheticSkippedError.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/UnintentionallyCoveredCodeError.php17
-rw-r--r--vendor/phpunit/phpunit/src/Framework/Exception/Warning.php24
27 files changed, 773 insertions, 0 deletions
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/ActualValueIsNotAnObjectException.php b/vendor/phpunit/phpunit/src/Framework/Exception/ActualValueIsNotAnObjectException.php
new file mode 100644
index 000000000..adae28294
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/ActualValueIsNotAnObjectException.php
@@ -0,0 +1,32 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+use const PHP_EOL;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class ActualValueIsNotAnObjectException extends Exception
+{
+ public function __construct()
+ {
+ parent::__construct(
+ 'Actual value is not an object',
+ 0,
+ null
+ );
+ }
+
+ public function __toString(): string
+ {
+ return $this->getMessage() . PHP_EOL;
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/AssertionFailedError.php b/vendor/phpunit/phpunit/src/Framework/Exception/AssertionFailedError.php
new file mode 100644
index 000000000..0ba25286f
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/AssertionFailedError.php
@@ -0,0 +1,24 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+class AssertionFailedError extends Exception implements SelfDescribing
+{
+ /**
+ * Wrapper for getMessage() which is declared as final.
+ */
+ public function toString(): string
+ {
+ return $this->getMessage();
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/CodeCoverageException.php b/vendor/phpunit/phpunit/src/Framework/Exception/CodeCoverageException.php
new file mode 100644
index 000000000..36b072313
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/CodeCoverageException.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+class CodeCoverageException extends Exception
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotAcceptParameterTypeException.php b/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotAcceptParameterTypeException.php
new file mode 100644
index 000000000..ebd68f34c
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotAcceptParameterTypeException.php
@@ -0,0 +1,38 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+use const PHP_EOL;
+use function sprintf;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class ComparisonMethodDoesNotAcceptParameterTypeException extends Exception
+{
+ public function __construct(string $className, string $methodName, string $type)
+ {
+ parent::__construct(
+ sprintf(
+ '%s is not an accepted argument type for comparison method %s::%s().',
+ $type,
+ $className,
+ $methodName
+ ),
+ 0,
+ null
+ );
+ }
+
+ public function __toString(): string
+ {
+ return $this->getMessage() . PHP_EOL;
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php b/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php
new file mode 100644
index 000000000..20189cde4
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php
@@ -0,0 +1,37 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+use const PHP_EOL;
+use function sprintf;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class ComparisonMethodDoesNotDeclareBoolReturnTypeException extends Exception
+{
+ public function __construct(string $className, string $methodName)
+ {
+ parent::__construct(
+ sprintf(
+ 'Comparison method %s::%s() does not declare bool return type.',
+ $className,
+ $methodName
+ ),
+ 0,
+ null
+ );
+ }
+
+ public function __toString(): string
+ {
+ return $this->getMessage() . PHP_EOL;
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php b/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php
new file mode 100644
index 000000000..bd09d87cc
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php
@@ -0,0 +1,37 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+use const PHP_EOL;
+use function sprintf;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class ComparisonMethodDoesNotDeclareExactlyOneParameterException extends Exception
+{
+ public function __construct(string $className, string $methodName)
+ {
+ parent::__construct(
+ sprintf(
+ 'Comparison method %s::%s() does not declare exactly one parameter.',
+ $className,
+ $methodName
+ ),
+ 0,
+ null
+ );
+ }
+
+ public function __toString(): string
+ {
+ return $this->getMessage() . PHP_EOL;
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareParameterTypeException.php b/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareParameterTypeException.php
new file mode 100644
index 000000000..9bbb112ea
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareParameterTypeException.php
@@ -0,0 +1,37 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+use const PHP_EOL;
+use function sprintf;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class ComparisonMethodDoesNotDeclareParameterTypeException extends Exception
+{
+ public function __construct(string $className, string $methodName)
+ {
+ parent::__construct(
+ sprintf(
+ 'Parameter of comparison method %s::%s() does not have a declared type.',
+ $className,
+ $methodName
+ ),
+ 0,
+ null
+ );
+ }
+
+ public function __toString(): string
+ {
+ return $this->getMessage() . PHP_EOL;
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotExistException.php b/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotExistException.php
new file mode 100644
index 000000000..ad0e2d088
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotExistException.php
@@ -0,0 +1,37 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+use const PHP_EOL;
+use function sprintf;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class ComparisonMethodDoesNotExistException extends Exception
+{
+ public function __construct(string $className, string $methodName)
+ {
+ parent::__construct(
+ sprintf(
+ 'Comparison method %s::%s() does not exist.',
+ $className,
+ $methodName
+ ),
+ 0,
+ null
+ );
+ }
+
+ public function __toString(): string
+ {
+ return $this->getMessage() . PHP_EOL;
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/CoveredCodeNotExecutedException.php b/vendor/phpunit/phpunit/src/Framework/Exception/CoveredCodeNotExecutedException.php
new file mode 100644
index 000000000..78f89bc39
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/CoveredCodeNotExecutedException.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class CoveredCodeNotExecutedException extends RiskyTestError
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/Error.php b/vendor/phpunit/phpunit/src/Framework/Exception/Error.php
new file mode 100644
index 000000000..d43e42186
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/Error.php
@@ -0,0 +1,24 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class Error extends Exception implements SelfDescribing
+{
+ /**
+ * Wrapper for getMessage() which is declared as final.
+ */
+ public function toString(): string
+ {
+ return $this->getMessage();
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/Exception.php b/vendor/phpunit/phpunit/src/Framework/Exception/Exception.php
new file mode 100644
index 000000000..0b21e6de3
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/Exception.php
@@ -0,0 +1,81 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+use function array_keys;
+use function get_object_vars;
+use PHPUnit\Util\Filter;
+use RuntimeException;
+use Throwable;
+
+/**
+ * Base class for all PHPUnit Framework exceptions.
+ *
+ * Ensures that exceptions thrown during a test run do not leave stray
+ * references behind.
+ *
+ * Every Exception contains a stack trace. Each stack frame contains the 'args'
+ * of the called function. The function arguments can contain references to
+ * instantiated objects. The references prevent the objects from being
+ * destructed (until test results are eventually printed), so memory cannot be
+ * freed up.
+ *
+ * With enabled process isolation, test results are serialized in the child
+ * process and unserialized in the parent process. The stack trace of Exceptions
+ * may contain objects that cannot be serialized or unserialized (e.g., PDO
+ * connections). Unserializing user-space objects from the child process into
+ * the parent would break the intended encapsulation of process isolation.
+ *
+ * @see http://fabien.potencier.org/article/9/php-serialization-stack-traces-and-exceptions
+ *
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+class Exception extends RuntimeException implements \PHPUnit\Exception
+{
+ /**
+ * @var array
+ */
+ protected $serializableTrace;
+
+ public function __construct($message = '', $code = 0, Throwable $previous = null)
+ {
+ parent::__construct($message, $code, $previous);
+
+ $this->serializableTrace = $this->getTrace();
+
+ foreach (array_keys($this->serializableTrace) as $key) {
+ unset($this->serializableTrace[$key]['args']);
+ }
+ }
+
+ public function __toString(): string
+ {
+ $string = TestFailure::exceptionToString($this);
+
+ if ($trace = Filter::getFilteredStacktrace($this)) {
+ $string .= "\n" . $trace;
+ }
+
+ return $string;
+ }
+
+ public function __sleep(): array
+ {
+ return array_keys(get_object_vars($this));
+ }
+
+ /**
+ * Returns the serializable trace (without 'args').
+ */
+ public function getSerializableTrace(): array
+ {
+ return $this->serializableTrace;
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/ExpectationFailedException.php b/vendor/phpunit/phpunit/src/Framework/Exception/ExpectationFailedException.php
new file mode 100644
index 000000000..b9a595a88
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/ExpectationFailedException.php
@@ -0,0 +1,42 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+use Exception;
+use SebastianBergmann\Comparator\ComparisonFailure;
+
+/**
+ * Exception for expectations which failed their check.
+ *
+ * The exception contains the error message and optionally a
+ * SebastianBergmann\Comparator\ComparisonFailure which is used to
+ * generate diff output of the failed expectations.
+ *
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class ExpectationFailedException extends AssertionFailedError
+{
+ /**
+ * @var ComparisonFailure
+ */
+ protected $comparisonFailure;
+
+ public function __construct(string $message, ComparisonFailure $comparisonFailure = null, Exception $previous = null)
+ {
+ $this->comparisonFailure = $comparisonFailure;
+
+ parent::__construct($message, 0, $previous);
+ }
+
+ public function getComparisonFailure(): ?ComparisonFailure
+ {
+ return $this->comparisonFailure;
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/IncompleteTestError.php b/vendor/phpunit/phpunit/src/Framework/Exception/IncompleteTestError.php
new file mode 100644
index 000000000..65f9c8bc3
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/IncompleteTestError.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class IncompleteTestError extends AssertionFailedError implements IncompleteTest
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/InvalidArgumentException.php b/vendor/phpunit/phpunit/src/Framework/Exception/InvalidArgumentException.php
new file mode 100644
index 000000000..77f580799
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/InvalidArgumentException.php
@@ -0,0 +1,46 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+use function debug_backtrace;
+use function in_array;
+use function lcfirst;
+use function sprintf;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class InvalidArgumentException extends Exception
+{
+ public static function create(int $argument, string $type): self
+ {
+ $stack = debug_backtrace();
+ $function = $stack[1]['function'];
+
+ if (isset($stack[1]['class'])) {
+ $function = sprintf('%s::%s', $stack[1]['class'], $stack[1]['function']);
+ }
+
+ return new self(
+ sprintf(
+ 'Argument #%d of %s() must be %s %s',
+ $argument,
+ $function,
+ in_array(lcfirst($type)[0], ['a', 'e', 'i', 'o', 'u'], true) ? 'an' : 'a',
+ $type
+ )
+ );
+ }
+
+ private function __construct(string $message = '', int $code = 0, \Exception $previous = null)
+ {
+ parent::__construct($message, $code, $previous);
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/InvalidCoversTargetException.php b/vendor/phpunit/phpunit/src/Framework/Exception/InvalidCoversTargetException.php
new file mode 100644
index 000000000..ebf2994a9
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/InvalidCoversTargetException.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class InvalidCoversTargetException extends CodeCoverageException
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/InvalidDataProviderException.php b/vendor/phpunit/phpunit/src/Framework/Exception/InvalidDataProviderException.php
new file mode 100644
index 000000000..7e2ef24c6
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/InvalidDataProviderException.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class InvalidDataProviderException extends Exception
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/MissingCoversAnnotationException.php b/vendor/phpunit/phpunit/src/Framework/Exception/MissingCoversAnnotationException.php
new file mode 100644
index 000000000..567a6c4c5
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/MissingCoversAnnotationException.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class MissingCoversAnnotationException extends RiskyTestError
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/NoChildTestSuiteException.php b/vendor/phpunit/phpunit/src/Framework/Exception/NoChildTestSuiteException.php
new file mode 100644
index 000000000..7ef4153b0
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/NoChildTestSuiteException.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class NoChildTestSuiteException extends Exception
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/OutputError.php b/vendor/phpunit/phpunit/src/Framework/Exception/OutputError.php
new file mode 100644
index 000000000..1c8b37e56
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/OutputError.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class OutputError extends AssertionFailedError
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/PHPTAssertionFailedError.php b/vendor/phpunit/phpunit/src/Framework/Exception/PHPTAssertionFailedError.php
new file mode 100644
index 000000000..17126139f
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/PHPTAssertionFailedError.php
@@ -0,0 +1,32 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class PHPTAssertionFailedError extends SyntheticError
+{
+ /**
+ * @var string
+ */
+ private $diff;
+
+ public function __construct(string $message, int $code, string $file, int $line, array $trace, string $diff)
+ {
+ parent::__construct($message, $code, $file, $line, $trace);
+ $this->diff = $diff;
+ }
+
+ public function getDiff(): string
+ {
+ return $this->diff;
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/RiskyTestError.php b/vendor/phpunit/phpunit/src/Framework/Exception/RiskyTestError.php
new file mode 100644
index 000000000..a66552c0d
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/RiskyTestError.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+class RiskyTestError extends AssertionFailedError
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/SkippedTestError.php b/vendor/phpunit/phpunit/src/Framework/Exception/SkippedTestError.php
new file mode 100644
index 000000000..7d553dcf3
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/SkippedTestError.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class SkippedTestError extends AssertionFailedError implements SkippedTest
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/SkippedTestSuiteError.php b/vendor/phpunit/phpunit/src/Framework/Exception/SkippedTestSuiteError.php
new file mode 100644
index 000000000..5448508a1
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/SkippedTestSuiteError.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class SkippedTestSuiteError extends AssertionFailedError implements SkippedTest
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/SyntheticError.php b/vendor/phpunit/phpunit/src/Framework/Exception/SyntheticError.php
new file mode 100644
index 000000000..c3124ba0c
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/SyntheticError.php
@@ -0,0 +1,61 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+class SyntheticError extends AssertionFailedError
+{
+ /**
+ * The synthetic file.
+ *
+ * @var string
+ */
+ protected $syntheticFile = '';
+
+ /**
+ * The synthetic line number.
+ *
+ * @var int
+ */
+ protected $syntheticLine = 0;
+
+ /**
+ * The synthetic trace.
+ *
+ * @var array
+ */
+ protected $syntheticTrace = [];
+
+ public function __construct(string $message, int $code, string $file, int $line, array $trace)
+ {
+ parent::__construct($message, $code);
+
+ $this->syntheticFile = $file;
+ $this->syntheticLine = $line;
+ $this->syntheticTrace = $trace;
+ }
+
+ public function getSyntheticFile(): string
+ {
+ return $this->syntheticFile;
+ }
+
+ public function getSyntheticLine(): int
+ {
+ return $this->syntheticLine;
+ }
+
+ public function getSyntheticTrace(): array
+ {
+ return $this->syntheticTrace;
+ }
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/SyntheticSkippedError.php b/vendor/phpunit/phpunit/src/Framework/Exception/SyntheticSkippedError.php
new file mode 100644
index 000000000..f6e155d7b
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/SyntheticSkippedError.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class SyntheticSkippedError extends SyntheticError implements SkippedTest
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/UnintentionallyCoveredCodeError.php b/vendor/phpunit/phpunit/src/Framework/Exception/UnintentionallyCoveredCodeError.php
new file mode 100644
index 000000000..fcd1d8249
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/UnintentionallyCoveredCodeError.php
@@ -0,0 +1,17 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class UnintentionallyCoveredCodeError extends RiskyTestError
+{
+}
diff --git a/vendor/phpunit/phpunit/src/Framework/Exception/Warning.php b/vendor/phpunit/phpunit/src/Framework/Exception/Warning.php
new file mode 100644
index 000000000..35e94493c
--- /dev/null
+++ b/vendor/phpunit/phpunit/src/Framework/Exception/Warning.php
@@ -0,0 +1,24 @@
+<?php declare(strict_types=1);
+/*
+ * This file is part of PHPUnit.
+ *
+ * (c) Sebastian Bergmann <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace PHPUnit\Framework;
+
+/**
+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
+ */
+final class Warning extends Exception implements SelfDescribing
+{
+ /**
+ * Wrapper for getMessage() which is declared as final.
+ */
+ public function toString(): string
+ {
+ return $this->getMessage();
+ }
+}