Skip to content

Commit 319bb00

Browse files
Regenerate
1 parent 5aedff4 commit 319bb00

File tree

1 file changed

+9
-30
lines changed

1 file changed

+9
-30
lines changed

src/Framework/Assert/Functions.php

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,9 +1134,9 @@ function assertNan(mixed $actual, string $message = ''): void
11341134
*
11351135
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
11361136
*
1137-
* @see Assert::assertObjectHasProperty()
1137+
* @see Assert::assertObjectHasProperty
11381138
*/
1139-
function assertObjectHasProperty(string $attributeName, object $object, string $message = ''): void
1139+
function assertObjectHasProperty(string $propertyName, object $object, string $message = ''): void
11401140
{
11411141
Assert::assertObjectHasProperty(...func_get_args());
11421142
}
@@ -1150,9 +1150,9 @@ function assertObjectHasProperty(string $attributeName, object $object, string $
11501150
*
11511151
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
11521152
*
1153-
* @see Assert::assertObjectNotHasProperty()
1153+
* @see Assert::assertObjectNotHasProperty
11541154
*/
1155-
function assertObjectNotHasProperty(string $attributeName, object $object, string $message = ''): void
1155+
function assertObjectNotHasProperty(string $propertyName, object $object, string $message = ''): void
11561156
{
11571157
Assert::assertObjectNotHasProperty(...func_get_args());
11581158
}
@@ -1206,6 +1206,7 @@ function assertNotSame(mixed $expected, mixed $actual, string $message = ''): vo
12061206
*
12071207
* @throws Exception
12081208
* @throws ExpectationFailedException
1209+
* @throws UnknownClassOrInterfaceException
12091210
*
12101211
* @psalm-template ExpectedType of object
12111212
*
@@ -1856,10 +1857,11 @@ function assertStringMatchesFormat(string $format, string $string, string $messa
18561857
*
18571858
* @throws ExpectationFailedException
18581859
*
1860+
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5472
1861+
*
18591862
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
18601863
*
18611864
* @see Assert::assertStringNotMatchesFormat
1862-
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5472
18631865
*/
18641866
function assertStringNotMatchesFormat(string $format, string $string, string $message = ''): void
18651867
{
@@ -1889,10 +1891,11 @@ function assertStringMatchesFormatFile(string $formatFile, string $string, strin
18891891
*
18901892
* @throws ExpectationFailedException
18911893
*
1894+
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5472
1895+
*
18921896
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
18931897
*
18941898
* @see Assert::assertStringNotMatchesFormatFile
1895-
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5472
18961899
*/
18971900
function assertStringNotMatchesFormatFile(string $formatFile, string $string, string $message = ''): void
18981901
{
@@ -2264,9 +2267,6 @@ function assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFil
22642267
}
22652268

22662269
if (!function_exists('PHPUnit\Framework\logicalAnd')) {
2267-
/**
2268-
* @throws Exception
2269-
*/
22702270
function logicalAnd(mixed ...$constraints): LogicalAnd
22712271
{
22722272
return Assert::logicalAnd(...func_get_args());
@@ -2372,19 +2372,13 @@ function containsIdentical(mixed $value): TraversableContainsIdentical
23722372
}
23732373

23742374
if (!function_exists('PHPUnit\Framework\containsOnly')) {
2375-
/**
2376-
* @throws Exception
2377-
*/
23782375
function containsOnly(string $type): TraversableContainsOnly
23792376
{
23802377
return Assert::containsOnly(...func_get_args());
23812378
}
23822379
}
23832380

23842381
if (!function_exists('PHPUnit\Framework\containsOnlyInstancesOf')) {
2385-
/**
2386-
* @throws Exception
2387-
*/
23882382
function containsOnlyInstancesOf(string $className): TraversableContainsOnly
23892383
{
23902384
return Assert::containsOnlyInstancesOf(...func_get_args());
@@ -2490,19 +2484,13 @@ function identicalTo(mixed $value): IsIdentical
24902484
}
24912485

24922486
if (!function_exists('PHPUnit\Framework\isInstanceOf')) {
2493-
/**
2494-
* @throws UnknownClassOrInterfaceException
2495-
*/
24962487
function isInstanceOf(string $className): IsInstanceOf
24972488
{
24982489
return Assert::isInstanceOf(...func_get_args());
24992490
}
25002491
}
25012492

25022493
if (!function_exists('PHPUnit\Framework\isType')) {
2503-
/**
2504-
* @throws Exception
2505-
*/
25062494
function isType(string $type): IsType
25072495
{
25082496
return Assert::isType(...func_get_args());
@@ -2538,29 +2526,20 @@ function matches(string $string): StringMatchesFormatDescription
25382526
}
25392527

25402528
if (!function_exists('PHPUnit\Framework\stringStartsWith')) {
2541-
/**
2542-
* @throws InvalidArgumentException
2543-
*/
25442529
function stringStartsWith(string $prefix): StringStartsWith
25452530
{
25462531
return Assert::stringStartsWith(...func_get_args());
25472532
}
25482533
}
25492534

25502535
if (!function_exists('PHPUnit\Framework\stringContains')) {
2551-
/**
2552-
* @throws InvalidArgumentException
2553-
*/
25542536
function stringContains(string $string, bool $case = true): StringContains
25552537
{
25562538
return Assert::stringContains(...func_get_args());
25572539
}
25582540
}
25592541

25602542
if (!function_exists('PHPUnit\Framework\stringEndsWith')) {
2561-
/**
2562-
* @throws InvalidArgumentException
2563-
*/
25642543
function stringEndsWith(string $suffix): StringEndsWith
25652544
{
25662545
return Assert::stringEndsWith(...func_get_args());

0 commit comments

Comments
 (0)