diff --git a/src/Framework/Assert/Functions.php b/src/Framework/Assert/Functions.php index d577b266a9f..ff33dc1a23b 100644 --- a/src/Framework/Assert/Functions.php +++ b/src/Framework/Assert/Functions.php @@ -71,7 +71,7 @@ * @param int|string $key * @param array|ArrayAccess $array * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -90,7 +90,7 @@ function assertArrayHasKey($key, $array, string $message = ''): void * @param array|ArrayAccess $subset * @param array|ArrayAccess $array * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -112,7 +112,7 @@ function assertArraySubset($subset, $array, bool $checkForObjectIdentity = false * @param int|string $key * @param array|ArrayAccess $array * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -128,7 +128,7 @@ function assertArrayNotHasKey($key, $array, string $message = ''): void /** * Asserts that a haystack contains a needle. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -154,7 +154,7 @@ function assertContainsEquals($needle, iterable $haystack, string $message = '') * * @param object|string $haystackClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -174,7 +174,7 @@ function assertAttributeContains($needle, string $haystackAttributeName, $haysta /** * Asserts that a haystack does not contain a needle. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -200,7 +200,7 @@ function assertNotContainsEquals($needle, iterable $haystack, string $message = * * @param object|string $haystackClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -220,7 +220,7 @@ function assertAttributeNotContains($needle, string $haystackAttributeName, $hay /** * Asserts that a haystack contains only values of a given type. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertContainsOnly @@ -235,7 +235,7 @@ function assertContainsOnly(string $type, iterable $haystack, ?bool $isNativeTyp /** * Asserts that a haystack contains only instances of a given class name. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertContainsOnlyInstancesOf @@ -253,7 +253,7 @@ function assertContainsOnlyInstancesOf(string $className, iterable $haystack, st * * @param object|string $haystackClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -273,7 +273,7 @@ function assertAttributeContainsOnly(string $type, string $haystackAttributeName /** * Asserts that a haystack does not contain only values of a given type. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertNotContainsOnly @@ -292,7 +292,7 @@ function assertNotContainsOnly(string $type, iterable $haystack, ?bool $isNative * * @param object|string $haystackClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -314,7 +314,7 @@ function assertAttributeNotContainsOnly(string $type, string $haystackAttributeN * * @param Countable|iterable $haystack * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -333,7 +333,7 @@ function assertCount(int $expectedCount, $haystack, string $message = ''): void * * @param object|string $haystackClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -355,7 +355,7 @@ function assertAttributeCount(int $expectedCount, string $haystackAttributeName, * * @param Countable|iterable $haystack * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -374,7 +374,7 @@ function assertNotCount(int $expectedCount, $haystack, string $message = ''): vo * * @param object|string $haystackClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -394,7 +394,7 @@ function assertAttributeNotCount(int $expectedCount, string $haystackAttributeNa /** * Asserts that two variables are equal. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertEquals @@ -409,7 +409,7 @@ function assertEquals($expected, $actual, string $message = '', float $delta = 0 /** * Asserts that two variables are equal (canonicalizing). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertEqualsCanonicalizing @@ -424,7 +424,7 @@ function assertEqualsCanonicalizing($expected, $actual, string $message = ''): v /** * Asserts that two variables are equal (ignoring case). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertEqualsIgnoringCase @@ -439,7 +439,7 @@ function assertEqualsIgnoringCase($expected, $actual, string $message = ''): voi /** * Asserts that two variables are equal (with delta). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertEqualsWithDelta @@ -456,7 +456,7 @@ function assertEqualsWithDelta($expected, $actual, float $delta, string $message * * @param object|string $actualClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -481,7 +481,7 @@ function assertAttributeEquals($expected, string $actualAttributeName, $actualCl * @param bool $canonicalize * @param bool $ignoreCase * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertNotEquals @@ -496,7 +496,7 @@ function assertNotEquals($expected, $actual, string $message = '', $delta = 0.0, /** * Asserts that two variables are not equal (canonicalizing). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertNotEqualsCanonicalizing @@ -511,7 +511,7 @@ function assertNotEqualsCanonicalizing($expected, $actual, string $message = '') /** * Asserts that two variables are not equal (ignoring case). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertNotEqualsIgnoringCase @@ -526,7 +526,7 @@ function assertNotEqualsIgnoringCase($expected, $actual, string $message = ''): /** * Asserts that two variables are not equal (with delta). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertNotEqualsWithDelta @@ -543,7 +543,7 @@ function assertNotEqualsWithDelta($expected, $actual, float $delta, string $mess * * @param object|string $actualClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -563,7 +563,7 @@ function assertAttributeNotEquals($expected, string $actualAttributeName, $actua /** * Asserts that a variable is empty. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert empty $actual @@ -583,7 +583,7 @@ function assertEmpty($actual, string $message = ''): void * * @param object|string $haystackClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -603,7 +603,7 @@ function assertAttributeEmpty(string $haystackAttributeName, $haystackClassOrObj /** * Asserts that a variable is not empty. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !empty $actual @@ -623,7 +623,7 @@ function assertNotEmpty($actual, string $message = ''): void * * @param object|string $haystackClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -643,7 +643,7 @@ function assertAttributeNotEmpty(string $haystackAttributeName, $haystackClassOr /** * Asserts that a value is greater than another value. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertGreaterThan @@ -660,7 +660,7 @@ function assertGreaterThan($expected, $actual, string $message = ''): void * * @param object|string $actualClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -680,7 +680,7 @@ function assertAttributeGreaterThan($expected, string $actualAttributeName, $act /** * Asserts that a value is greater than or equal to another value. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertGreaterThanOrEqual @@ -697,7 +697,7 @@ function assertGreaterThanOrEqual($expected, $actual, string $message = ''): voi * * @param object|string $actualClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -717,7 +717,7 @@ function assertAttributeGreaterThanOrEqual($expected, string $actualAttributeNam /** * Asserts that a value is smaller than another value. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertLessThan @@ -734,7 +734,7 @@ function assertLessThan($expected, $actual, string $message = ''): void * * @param object|string $actualClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -754,7 +754,7 @@ function assertAttributeLessThan($expected, string $actualAttributeName, $actual /** * Asserts that a value is smaller than or equal to another value. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertLessThanOrEqual @@ -771,7 +771,7 @@ function assertLessThanOrEqual($expected, $actual, string $message = ''): void * * @param object|string $actualClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -792,7 +792,7 @@ function assertAttributeLessThanOrEqual($expected, string $actualAttributeName, * Asserts that the contents of one file is equal to the contents of another * file. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileEquals @@ -808,7 +808,7 @@ function assertFileEquals(string $expected, string $actual, string $message = '' * Asserts that the contents of one file is equal to the contents of another * file (canonicalizing). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileEqualsCanonicalizing @@ -824,7 +824,7 @@ function assertFileEqualsCanonicalizing(string $expected, string $actual, string * Asserts that the contents of one file is equal to the contents of another * file (ignoring case). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileEqualsIgnoringCase @@ -840,7 +840,7 @@ function assertFileEqualsIgnoringCase(string $expected, string $actual, string $ * Asserts that the contents of one file is not equal to the contents of * another file. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileNotEquals @@ -856,7 +856,7 @@ function assertFileNotEquals(string $expected, string $actual, string $message = * Asserts that the contents of one file is not equal to the contents of another * file (canonicalizing). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileNotEqualsCanonicalizing @@ -872,7 +872,7 @@ function assertFileNotEqualsCanonicalizing(string $expected, string $actual, str * Asserts that the contents of one file is not equal to the contents of another * file (ignoring case). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileNotEqualsIgnoringCase @@ -888,7 +888,7 @@ function assertFileNotEqualsIgnoringCase(string $expected, string $actual, strin * Asserts that the contents of a string is equal * to the contents of a file. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringEqualsFile @@ -904,7 +904,7 @@ function assertStringEqualsFile(string $expectedFile, string $actualString, stri * Asserts that the contents of a string is equal * to the contents of a file (canonicalizing). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringEqualsFileCanonicalizing @@ -920,7 +920,7 @@ function assertStringEqualsFileCanonicalizing(string $expectedFile, string $actu * Asserts that the contents of a string is equal * to the contents of a file (ignoring case). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringEqualsFileIgnoringCase @@ -936,7 +936,7 @@ function assertStringEqualsFileIgnoringCase(string $expectedFile, string $actual * Asserts that the contents of a string is not equal * to the contents of a file. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringNotEqualsFile @@ -952,7 +952,7 @@ function assertStringNotEqualsFile(string $expectedFile, string $actualString, s * Asserts that the contents of a string is not equal * to the contents of a file (canonicalizing). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringNotEqualsFileCanonicalizing @@ -968,7 +968,7 @@ function assertStringNotEqualsFileCanonicalizing(string $expectedFile, string $a * Asserts that the contents of a string is not equal * to the contents of a file (ignoring case). * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringNotEqualsFileIgnoringCase @@ -983,7 +983,7 @@ function assertStringNotEqualsFileIgnoringCase(string $expectedFile, string $act /** * Asserts that a file/dir is readable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertIsReadable @@ -998,7 +998,7 @@ function assertIsReadable(string $filename, string $message = ''): void /** * Asserts that a file/dir exists and is not readable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertNotIsReadable @@ -1013,7 +1013,7 @@ function assertNotIsReadable(string $filename, string $message = ''): void /** * Asserts that a file/dir exists and is writable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertIsWritable @@ -1028,7 +1028,7 @@ function assertIsWritable(string $filename, string $message = ''): void /** * Asserts that a file/dir exists and is not writable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertNotIsWritable @@ -1043,7 +1043,7 @@ function assertNotIsWritable(string $filename, string $message = ''): void /** * Asserts that a directory exists. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertDirectoryExists @@ -1058,7 +1058,7 @@ function assertDirectoryExists(string $directory, string $message = ''): void /** * Asserts that a directory does not exist. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertDirectoryNotExists @@ -1073,7 +1073,7 @@ function assertDirectoryNotExists(string $directory, string $message = ''): void /** * Asserts that a directory exists and is readable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertDirectoryIsReadable @@ -1088,7 +1088,7 @@ function assertDirectoryIsReadable(string $directory, string $message = ''): voi /** * Asserts that a directory exists and is not readable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertDirectoryNotIsReadable @@ -1103,7 +1103,7 @@ function assertDirectoryNotIsReadable(string $directory, string $message = ''): /** * Asserts that a directory exists and is writable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertDirectoryIsWritable @@ -1118,7 +1118,7 @@ function assertDirectoryIsWritable(string $directory, string $message = ''): voi /** * Asserts that a directory exists and is not writable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertDirectoryNotIsWritable @@ -1133,7 +1133,7 @@ function assertDirectoryNotIsWritable(string $directory, string $message = ''): /** * Asserts that a file exists. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileExists @@ -1148,7 +1148,7 @@ function assertFileExists(string $filename, string $message = ''): void /** * Asserts that a file does not exist. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileNotExists @@ -1163,7 +1163,7 @@ function assertFileNotExists(string $filename, string $message = ''): void /** * Asserts that a file exists and is readable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileIsReadable @@ -1178,7 +1178,7 @@ function assertFileIsReadable(string $file, string $message = ''): void /** * Asserts that a file exists and is not readable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileNotIsReadable @@ -1193,7 +1193,7 @@ function assertFileNotIsReadable(string $file, string $message = ''): void /** * Asserts that a file exists and is writable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileIsWritable @@ -1208,7 +1208,7 @@ function assertFileIsWritable(string $file, string $message = ''): void /** * Asserts that a file exists and is not writable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFileNotIsWritable @@ -1223,7 +1223,7 @@ function assertFileNotIsWritable(string $file, string $message = ''): void /** * Asserts that a condition is true. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert true $condition @@ -1240,7 +1240,7 @@ function assertTrue($condition, string $message = ''): void /** * Asserts that a condition is not true. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !true $condition @@ -1257,7 +1257,7 @@ function assertNotTrue($condition, string $message = ''): void /** * Asserts that a condition is false. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert false $condition @@ -1274,7 +1274,7 @@ function assertFalse($condition, string $message = ''): void /** * Asserts that a condition is not false. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !false $condition @@ -1291,7 +1291,7 @@ function assertNotFalse($condition, string $message = ''): void /** * Asserts that a variable is null. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert null $actual @@ -1308,7 +1308,7 @@ function assertNull($actual, string $message = ''): void /** * Asserts that a variable is not null. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !null $actual @@ -1325,7 +1325,7 @@ function assertNotNull($actual, string $message = ''): void /** * Asserts that a variable is finite. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertFinite @@ -1340,7 +1340,7 @@ function assertFinite($actual, string $message = ''): void /** * Asserts that a variable is infinite. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertInfinite @@ -1355,7 +1355,7 @@ function assertInfinite($actual, string $message = ''): void /** * Asserts that a variable is nan. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertNan @@ -1370,7 +1370,7 @@ function assertNan($actual, string $message = ''): void /** * Asserts that a class has a specified attribute. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1386,7 +1386,7 @@ function assertClassHasAttribute(string $attributeName, string $className, strin /** * Asserts that a class does not have a specified attribute. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1402,7 +1402,7 @@ function assertClassNotHasAttribute(string $attributeName, string $className, st /** * Asserts that a class has a specified static attribute. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1418,7 +1418,7 @@ function assertClassHasStaticAttribute(string $attributeName, string $className, /** * Asserts that a class does not have a specified static attribute. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1436,7 +1436,7 @@ function assertClassNotHasStaticAttribute(string $attributeName, string $classNa * * @param object $object * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1454,7 +1454,7 @@ function assertObjectHasAttribute(string $attributeName, $object, string $messag * * @param object $object * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1472,7 +1472,7 @@ function assertObjectNotHasAttribute(string $attributeName, $object, string $mes * Used on objects, it asserts that two variables reference * the same object. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-template ExpectedType @@ -1496,7 +1496,7 @@ function assertSame($expected, $actual, string $message = ''): void * * @param object|string $actualClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1518,7 +1518,7 @@ function assertAttributeSame($expected, string $actualAttributeName, $actualClas * Used on objects, it asserts that two variables do not reference * the same object. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertNotSame @@ -1536,7 +1536,7 @@ function assertNotSame($expected, $actual, string $message = ''): void * * @param object|string $actualClassOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1556,7 +1556,7 @@ function assertAttributeNotSame($expected, string $actualAttributeName, $actualC /** * Asserts that a variable is of a given type. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1580,7 +1580,7 @@ function assertInstanceOf(string $expected, $actual, string $message = ''): void * * @param object|string $classOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1602,7 +1602,7 @@ function assertAttributeInstanceOf(string $expected, string $attributeName, $cla /** * Asserts that a variable is not of a given type. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1626,7 +1626,7 @@ function assertNotInstanceOf(string $expected, $actual, string $message = ''): v * * @param object|string $classOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1648,7 +1648,7 @@ function assertAttributeNotInstanceOf(string $expected, string $attributeName, $ /** * Asserts that a variable is of a given type. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/3369 @@ -1669,7 +1669,7 @@ function assertInternalType(string $expected, $actual, string $message = ''): vo * * @param object|string $classOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -1689,7 +1689,7 @@ function assertAttributeInternalType(string $expected, string $attributeName, $c /** * Asserts that a variable is of type array. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert array $actual @@ -1706,7 +1706,7 @@ function assertIsArray($actual, string $message = ''): void /** * Asserts that a variable is of type bool. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert bool $actual @@ -1723,7 +1723,7 @@ function assertIsBool($actual, string $message = ''): void /** * Asserts that a variable is of type float. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert float $actual @@ -1740,7 +1740,7 @@ function assertIsFloat($actual, string $message = ''): void /** * Asserts that a variable is of type int. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert int $actual @@ -1757,7 +1757,7 @@ function assertIsInt($actual, string $message = ''): void /** * Asserts that a variable is of type numeric. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert numeric $actual @@ -1774,7 +1774,7 @@ function assertIsNumeric($actual, string $message = ''): void /** * Asserts that a variable is of type object. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert object $actual @@ -1791,7 +1791,7 @@ function assertIsObject($actual, string $message = ''): void /** * Asserts that a variable is of type resource. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert resource $actual @@ -1808,7 +1808,7 @@ function assertIsResource($actual, string $message = ''): void /** * Asserts that a variable is of type string. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert string $actual @@ -1825,7 +1825,7 @@ function assertIsString($actual, string $message = ''): void /** * Asserts that a variable is of type scalar. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert scalar $actual @@ -1842,7 +1842,7 @@ function assertIsScalar($actual, string $message = ''): void /** * Asserts that a variable is of type callable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert callable $actual @@ -1859,7 +1859,7 @@ function assertIsCallable($actual, string $message = ''): void /** * Asserts that a variable is of type iterable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert iterable $actual @@ -1876,7 +1876,7 @@ function assertIsIterable($actual, string $message = ''): void /** * Asserts that a variable is not of a given type. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/3369 @@ -1895,7 +1895,7 @@ function assertNotInternalType(string $expected, $actual, string $message = ''): /** * Asserts that a variable is not of type array. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !array $actual @@ -1912,7 +1912,7 @@ function assertIsNotArray($actual, string $message = ''): void /** * Asserts that a variable is not of type bool. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !bool $actual @@ -1929,7 +1929,7 @@ function assertIsNotBool($actual, string $message = ''): void /** * Asserts that a variable is not of type float. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !float $actual @@ -1946,7 +1946,7 @@ function assertIsNotFloat($actual, string $message = ''): void /** * Asserts that a variable is not of type int. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !int $actual @@ -1963,7 +1963,7 @@ function assertIsNotInt($actual, string $message = ''): void /** * Asserts that a variable is not of type numeric. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !numeric $actual @@ -1980,7 +1980,7 @@ function assertIsNotNumeric($actual, string $message = ''): void /** * Asserts that a variable is not of type object. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !object $actual @@ -1997,7 +1997,7 @@ function assertIsNotObject($actual, string $message = ''): void /** * Asserts that a variable is not of type resource. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !resource $actual @@ -2014,7 +2014,7 @@ function assertIsNotResource($actual, string $message = ''): void /** * Asserts that a variable is not of type string. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !string $actual @@ -2031,7 +2031,7 @@ function assertIsNotString($actual, string $message = ''): void /** * Asserts that a variable is not of type scalar. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !scalar $actual @@ -2048,7 +2048,7 @@ function assertIsNotScalar($actual, string $message = ''): void /** * Asserts that a variable is not of type callable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !callable $actual @@ -2065,7 +2065,7 @@ function assertIsNotCallable($actual, string $message = ''): void /** * Asserts that a variable is not of type iterable. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @psalm-assert !iterable $actual @@ -2084,7 +2084,7 @@ function assertIsNotIterable($actual, string $message = ''): void * * @param object|string $classOrObject * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -2104,7 +2104,7 @@ function assertAttributeNotInternalType(string $expected, string $attributeName, /** * Asserts that a string matches a given regular expression. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertRegExp @@ -2119,7 +2119,7 @@ function assertRegExp(string $pattern, string $string, string $message = ''): vo /** * Asserts that a string does not match a given regular expression. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertNotRegExp @@ -2138,7 +2138,7 @@ function assertNotRegExp(string $pattern, string $string, string $message = ''): * @param Countable|iterable $expected * @param Countable|iterable $actual * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -2158,7 +2158,7 @@ function assertSameSize($expected, $actual, string $message = ''): void * @param Countable|iterable $expected * @param Countable|iterable $actual * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -2174,7 +2174,7 @@ function assertNotSameSize($expected, $actual, string $message = ''): void /** * Asserts that a string matches a given format string. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringMatchesFormat @@ -2189,7 +2189,7 @@ function assertStringMatchesFormat(string $format, string $string, string $messa /** * Asserts that a string does not match a given format string. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringNotMatchesFormat @@ -2204,7 +2204,7 @@ function assertStringNotMatchesFormat(string $format, string $string, string $me /** * Asserts that a string matches a given format file. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringMatchesFormatFile @@ -2219,7 +2219,7 @@ function assertStringMatchesFormatFile(string $formatFile, string $string, strin /** * Asserts that a string does not match a given format string. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringNotMatchesFormatFile @@ -2234,7 +2234,7 @@ function assertStringNotMatchesFormatFile(string $formatFile, string $string, st /** * Asserts that a string starts with a given prefix. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringStartsWith @@ -2252,7 +2252,7 @@ function assertStringStartsWith(string $prefix, string $string, string $message * @param string $prefix * @param string $string * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringStartsNotWith @@ -2265,7 +2265,7 @@ function assertStringStartsNotWith($prefix, $string, string $message = ''): void if (!\function_exists('PHPUnit\Framework\assertStringContainsString')) { /** - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringContainsString @@ -2278,7 +2278,7 @@ function assertStringContainsString(string $needle, string $haystack, string $me if (!\function_exists('PHPUnit\Framework\assertStringContainsStringIgnoringCase')) { /** - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringContainsStringIgnoringCase @@ -2291,7 +2291,7 @@ function assertStringContainsStringIgnoringCase(string $needle, string $haystack if (!\function_exists('PHPUnit\Framework\assertStringNotContainsString')) { /** - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringNotContainsString @@ -2304,7 +2304,7 @@ function assertStringNotContainsString(string $needle, string $haystack, string if (!\function_exists('PHPUnit\Framework\assertStringNotContainsStringIgnoringCase')) { /** - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringNotContainsStringIgnoringCase @@ -2319,7 +2319,7 @@ function assertStringNotContainsStringIgnoringCase(string $needle, string $hayst /** * Asserts that a string ends with a given suffix. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringEndsWith @@ -2334,7 +2334,7 @@ function assertStringEndsWith(string $suffix, string $string, string $message = /** * Asserts that a string ends not with a given suffix. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertStringEndsNotWith @@ -2349,7 +2349,7 @@ function assertStringEndsNotWith(string $suffix, string $string, string $message /** * Asserts that two XML files are equal. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -2365,7 +2365,7 @@ function assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile, st /** * Asserts that two XML files are not equal. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -2383,7 +2383,7 @@ function assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile, * * @param DOMDocument|string $actualXml * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -2401,7 +2401,7 @@ function assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml, string $ * * @param DOMDocument|string $actualXml * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -2420,7 +2420,7 @@ function assertXmlStringNotEqualsXmlFile(string $expectedFile, $actualXml, strin * @param DOMDocument|string $expectedXml * @param DOMDocument|string $actualXml * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -2439,7 +2439,7 @@ function assertXmlStringEqualsXmlString($expectedXml, $actualXml, string $messag * @param DOMDocument|string $expectedXml * @param DOMDocument|string $actualXml * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception * @throws ExpectationFailedException * @@ -2455,7 +2455,7 @@ function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, string $mes /** * Asserts that a hierarchy of DOMElements matches. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws AssertionFailedError * @throws ExpectationFailedException * @@ -2471,7 +2471,7 @@ function assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actual /** * Evaluates a PHPUnit\Framework\Constraint matcher object. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertThat @@ -2486,7 +2486,7 @@ function assertThat($value, Constraint $constraint, string $message = ''): void /** * Asserts that a string is a valid JSON string. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertJson @@ -2501,7 +2501,7 @@ function assertJson(string $actualJson, string $message = ''): void /** * Asserts that two given JSON encoded objects or arrays are equal. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertJsonStringEqualsJsonString @@ -2519,7 +2519,7 @@ function assertJsonStringEqualsJsonString(string $expectedJson, string $actualJs * @param string $expectedJson * @param string $actualJson * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertJsonStringNotEqualsJsonString @@ -2534,7 +2534,7 @@ function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, string /** * Asserts that the generated JSON encoded object and the content of the given file are equal. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertJsonStringEqualsJsonFile @@ -2549,7 +2549,7 @@ function assertJsonStringEqualsJsonFile(string $expectedFile, string $actualJson /** * Asserts that the generated JSON encoded object and the content of the given file are not equal. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertJsonStringNotEqualsJsonFile @@ -2564,7 +2564,7 @@ function assertJsonStringNotEqualsJsonFile(string $expectedFile, string $actualJ /** * Asserts that two JSON files are equal. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertJsonFileEqualsJsonFile @@ -2579,7 +2579,7 @@ function assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile, /** * Asserts that two JSON files are not equal. * - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException * @throws ExpectationFailedException * * @see Assert::assertJsonFileNotEqualsJsonFile diff --git a/src/Framework/MockObject/InvocationHandler.php b/src/Framework/MockObject/InvocationHandler.php index 77d7825a236..383a1de6c03 100644 --- a/src/Framework/MockObject/InvocationHandler.php +++ b/src/Framework/MockObject/InvocationHandler.php @@ -177,7 +177,7 @@ public function matches(Invocation $invocation): bool } /** - * @throws \PHPUnit\Framework\ExpectationFailedException + * @throws ExpectationFailedException */ public function verify(): void { diff --git a/src/Framework/MockObject/Rule/ConsecutiveParameters.php b/src/Framework/MockObject/Rule/ConsecutiveParameters.php index 9cb8137d1b8..4c2024d8d86 100644 --- a/src/Framework/MockObject/Rule/ConsecutiveParameters.php +++ b/src/Framework/MockObject/Rule/ConsecutiveParameters.php @@ -78,8 +78,8 @@ public function apply(BaseInvocation $invocation): void } /** - * @throws \PHPUnit\Framework\ExpectationFailedException * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws ExpectationFailedException */ public function verify(): void { diff --git a/src/Framework/TestCase.php b/src/Framework/TestCase.php index 889d8db40fb..a0edaf12ff2 100644 --- a/src/Framework/TestCase.php +++ b/src/Framework/TestCase.php @@ -289,7 +289,7 @@ abstract class TestCase extends Assert implements SelfDescribing, Test private $snapshot; /** - * @var \Prophecy\Prophet + * @var Prophet */ private $prophet; diff --git a/src/Framework/TestSuite.php b/src/Framework/TestSuite.php index 6c1c799cd38..f4a379ad59a 100644 --- a/src/Framework/TestSuite.php +++ b/src/Framework/TestSuite.php @@ -530,13 +530,13 @@ public function setGroupDetails(array $groups): void /** * Runs the tests and collects their result in a TestResult. * - * @throws \PHPUnit\Framework\CodeCoverageException * @throws \SebastianBergmann\CodeCoverage\CoveredCodeNotExecutedException * @throws \SebastianBergmann\CodeCoverage\InvalidArgumentException * @throws \SebastianBergmann\CodeCoverage\MissingCoversAnnotationException * @throws \SebastianBergmann\CodeCoverage\RuntimeException * @throws \SebastianBergmann\CodeCoverage\UnintentionallyCoveredCodeException * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws CodeCoverageException * @throws Warning */ public function run(TestResult $result = null): TestResult diff --git a/src/TextUI/Command.php b/src/TextUI/Command.php index 93ca1283746..0f6e5284351 100644 --- a/src/TextUI/Command.php +++ b/src/TextUI/Command.php @@ -187,7 +187,7 @@ class Command private $versionStringPrinted = false; /** - * @throws \PHPUnit\Framework\Exception + * @throws Exception */ public static function main(bool $exit = true): int { @@ -1265,7 +1265,7 @@ private function handleListGroups(TestSuite $suite, bool $exit): int } /** - * @throws \PHPUnit\Framework\Exception + * @throws Exception */ private function handleListSuites(bool $exit): int { diff --git a/src/Util/Configuration.php b/src/Util/Configuration.php index c8ebdc0fab4..2f2bbf8ed31 100644 --- a/src/Util/Configuration.php +++ b/src/Util/Configuration.php @@ -982,7 +982,7 @@ private function getConfigurationArguments(DOMNodeList $nodes): array } /** - * @throws \PHPUnit\Framework\Exception + * @throws Exception */ private function getTestSuite(DOMElement $testSuiteNode, string $testSuiteFilter = ''): TestSuite { diff --git a/src/Util/Json.php b/src/Util/Json.php index 752c1fd600b..89585a7002c 100644 --- a/src/Util/Json.php +++ b/src/Util/Json.php @@ -29,7 +29,7 @@ final class Json /** * Prettify json string. * - * @throws \PHPUnit\Framework\Exception + * @throws Exception */ public static function prettify(string $json): string { diff --git a/tests/end-to-end/regression/2137/Issue2137Test.php b/tests/end-to-end/regression/2137/Issue2137Test.php index c182982bfbc..aafbb307864 100644 --- a/tests/end-to-end/regression/2137/Issue2137Test.php +++ b/tests/end-to-end/regression/2137/Issue2137Test.php @@ -12,9 +12,9 @@ class Issue2137Test extends PHPUnit\Framework\TestCase /** * @dataProvider provideBrandService * - * @throws \PHPUnit\Framework\ExpectationFailedException - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception + * @throws PHPUnit\Framework\ExpectationFailedException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException */ public function testBrandService($provided, $expected): void { @@ -32,9 +32,9 @@ public function provideBrandService() /** * @dataProvider provideBrandService * - * @throws \PHPUnit\Framework\ExpectationFailedException - * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException * @throws Exception + * @throws PHPUnit\Framework\ExpectationFailedException + * @throws SebastianBergmann\RecursionContext\InvalidArgumentException */ public function testSomethingElseInvalid($provided, $expected): void { diff --git a/tests/unit/Framework/Constraint/IsJsonTest.php b/tests/unit/Framework/Constraint/IsJsonTest.php index bca9ed5e038..c0a35c68cb5 100644 --- a/tests/unit/Framework/Constraint/IsJsonTest.php +++ b/tests/unit/Framework/Constraint/IsJsonTest.php @@ -30,8 +30,8 @@ public static function evaluateDataprovider(): array * * @dataProvider evaluateDataprovider * - * @throws \PHPUnit\Framework\ExpectationFailedException * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws ExpectationFailedException */ public function testEvaluate($expected, $jsonOther): void { diff --git a/tests/unit/Framework/MockObject/GeneratorTest.php b/tests/unit/Framework/MockObject/GeneratorTest.php index a1b39d09b32..05cf3ad874c 100644 --- a/tests/unit/Framework/MockObject/GeneratorTest.php +++ b/tests/unit/Framework/MockObject/GeneratorTest.php @@ -56,7 +56,7 @@ protected function setUp(): void public function testGetMockThrowsExceptionWhenInvalidFunctionNameIsPassedInAsAFunctionToMock(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $this->generator->getMock(stdClass::class, [0]); } @@ -77,7 +77,7 @@ public function testGetMockThrowsExceptionWithInvalidMethods(): void public function testGetMockThrowsExceptionWithNonExistingClass(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $this->assertFalse(class_exists('Tux')); @@ -86,7 +86,7 @@ public function testGetMockThrowsExceptionWithNonExistingClass(): void public function testGetMockThrowsExceptionWithNonExistingClasses(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $this->assertFalse(class_exists('Tux')); @@ -95,7 +95,7 @@ public function testGetMockThrowsExceptionWithNonExistingClasses(): void public function testGetMockThrowsExceptionWithExistingClassAsMockName(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $this->generator->getMock(stdClass::class, [], [], RuntimeException::class); } @@ -109,7 +109,7 @@ public function testGetMockCanCreateNonExistingFunctions(): void public function testGetMockGeneratorThrowsException(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $this->expectExceptionMessage('duplicates: "foo, bar, foo" (duplicate: "foo")'); $this->generator->getMock(stdClass::class, ['foo', 'bar', 'foo']); @@ -167,7 +167,7 @@ public function testGetMockForAbstractClassShouldCreateStubsOnlyForAbstractMetho public function testGetMockForAbstractClassAbstractClassDoesNotExist(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $this->generator->getMockForAbstractClass('Tux'); } @@ -199,21 +199,21 @@ public function testGetMockForTraitStubbingAbstractMethod(): void public function testGetMockForTraitWithNonExistantTrait(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $mock = $this->generator->getMockForTrait('Tux'); } public function testGetObjectForTraitWithNonExistantTrait(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $mock = $this->generator->getObjectForTrait('Tux'); } public function testGetMockClassMethodsForNonExistantClass(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $mock = $this->generator->mockClassMethods('Tux', true, true); } @@ -227,7 +227,7 @@ public function testGetMockForSingletonWithReflectionSuccess(): void public function testExceptionIsRaisedForMutuallyExclusiveOptions(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $this->generator->getMock(stdClass::class, [], [], '', false, true, true, true, true); } @@ -319,14 +319,14 @@ public function testVariadicArgumentsArePassedToMockedMethod(): void public function testGetClassMethodsWithNonExistingClass(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $this->generator->getClassMethods('Tux'); } public function testCannotMockFinalClass(): void { - $this->expectException(\PHPUnit\Framework\MockObject\RuntimeException::class); + $this->expectException(RuntimeException::class); $mock = $this->createMock(FinalClass::class); } diff --git a/tests/unit/Framework/MockObject/MockObjectTest.php b/tests/unit/Framework/MockObject/MockObjectTest.php index 4e4c3a3d385..6789ac0b259 100644 --- a/tests/unit/Framework/MockObject/MockObjectTest.php +++ b/tests/unit/Framework/MockObject/MockObjectTest.php @@ -1033,7 +1033,7 @@ public function testInvokingStubbedStaticMethodRaisesException(): void { $mock = $this->getMockBuilder(ClassWithStaticMethod::class)->getMock(); - $this->expectException(\PHPUnit\Framework\MockObject\BadMethodCallException::class); + $this->expectException(BadMethodCallException::class); $mock->staticMethod(); } @@ -1065,7 +1065,7 @@ public function testGetMockForClassWithSelfTypeHint(): void public function testStringableClassDoesNotThrow(): void { - /** @var \PHPUnit\Framework\MockObject\MockObject|StringableClass $mock */ + /** @var MockObject|StringableClass $mock */ $mock = $this->getMockBuilder(StringableClass::class)->getMock(); $this->assertIsString((string) $mock); @@ -1073,7 +1073,7 @@ public function testStringableClassDoesNotThrow(): void public function testStringableClassCanBeMocked(): void { - /** @var \PHPUnit\Framework\MockObject\MockObject|StringableClass $mock */ + /** @var MockObject|StringableClass $mock */ $mock = $this->getMockBuilder(StringableClass::class)->getMock(); $mock->method('__toString')->willReturn('foo'); @@ -1137,7 +1137,7 @@ public function testDisableAutomaticReturnValueGeneration(): void public function testDisableAutomaticReturnValueGenerationWithToString(): void { - /** @var \PHPUnit\Framework\MockObject\MockObject|StringableClass $mock */ + /** @var MockObject|StringableClass $mock */ $mock = $this->getMockBuilder(StringableClass::class) ->disableAutoReturnValueGeneration() ->getMock(); diff --git a/tests/unit/Util/JsonTest.php b/tests/unit/Util/JsonTest.php index d25b4ccd694..740a2c15949 100644 --- a/tests/unit/Util/JsonTest.php +++ b/tests/unit/Util/JsonTest.php @@ -49,9 +49,9 @@ public function canonicalizeProvider(): array * * @dataProvider prettifyProvider * - * @throws \PHPUnit\Framework\Exception * @throws \PHPUnit\Framework\ExpectationFailedException * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws Exception */ public function testPrettify($actual, $expected): void {