@@ -1134,9 +1134,9 @@ function assertNan(mixed $actual, string $message = ''): void
1134
1134
*
1135
1135
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1136
1136
*
1137
- * @see Assert::assertObjectHasProperty()
1137
+ * @see Assert::assertObjectHasProperty
1138
1138
*/
1139
- function assertObjectHasProperty (string $ attributeName , object $ object , string $ message = '' ): void
1139
+ function assertObjectHasProperty (string $ propertyName , object $ object , string $ message = '' ): void
1140
1140
{
1141
1141
Assert::assertObjectHasProperty (...func_get_args ());
1142
1142
}
@@ -1150,9 +1150,9 @@ function assertObjectHasProperty(string $attributeName, object $object, string $
1150
1150
*
1151
1151
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1152
1152
*
1153
- * @see Assert::assertObjectNotHasProperty()
1153
+ * @see Assert::assertObjectNotHasProperty
1154
1154
*/
1155
- function assertObjectNotHasProperty (string $ attributeName , object $ object , string $ message = '' ): void
1155
+ function assertObjectNotHasProperty (string $ propertyName , object $ object , string $ message = '' ): void
1156
1156
{
1157
1157
Assert::assertObjectNotHasProperty (...func_get_args ());
1158
1158
}
@@ -1206,6 +1206,7 @@ function assertNotSame(mixed $expected, mixed $actual, string $message = ''): vo
1206
1206
*
1207
1207
* @throws Exception
1208
1208
* @throws ExpectationFailedException
1209
+ * @throws UnknownClassOrInterfaceException
1209
1210
*
1210
1211
* @psalm-template ExpectedType of object
1211
1212
*
@@ -1856,10 +1857,11 @@ function assertStringMatchesFormat(string $format, string $string, string $messa
1856
1857
*
1857
1858
* @throws ExpectationFailedException
1858
1859
*
1860
+ * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5472
1861
+ *
1859
1862
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1860
1863
*
1861
1864
* @see Assert::assertStringNotMatchesFormat
1862
- * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5472
1863
1865
*/
1864
1866
function assertStringNotMatchesFormat (string $ format , string $ string , string $ message = '' ): void
1865
1867
{
@@ -1889,10 +1891,11 @@ function assertStringMatchesFormatFile(string $formatFile, string $string, strin
1889
1891
*
1890
1892
* @throws ExpectationFailedException
1891
1893
*
1894
+ * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5472
1895
+ *
1892
1896
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1893
1897
*
1894
1898
* @see Assert::assertStringNotMatchesFormatFile
1895
- * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5472
1896
1899
*/
1897
1900
function assertStringNotMatchesFormatFile (string $ formatFile , string $ string , string $ message = '' ): void
1898
1901
{
@@ -2264,9 +2267,6 @@ function assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFil
2264
2267
}
2265
2268
2266
2269
if (!function_exists ('PHPUnit\Framework\logicalAnd ' )) {
2267
- /**
2268
- * @throws Exception
2269
- */
2270
2270
function logicalAnd (mixed ...$ constraints ): LogicalAnd
2271
2271
{
2272
2272
return Assert::logicalAnd (...func_get_args ());
@@ -2372,19 +2372,13 @@ function containsIdentical(mixed $value): TraversableContainsIdentical
2372
2372
}
2373
2373
2374
2374
if (!function_exists ('PHPUnit\Framework\containsOnly ' )) {
2375
- /**
2376
- * @throws Exception
2377
- */
2378
2375
function containsOnly (string $ type ): TraversableContainsOnly
2379
2376
{
2380
2377
return Assert::containsOnly (...func_get_args ());
2381
2378
}
2382
2379
}
2383
2380
2384
2381
if (!function_exists ('PHPUnit\Framework\containsOnlyInstancesOf ' )) {
2385
- /**
2386
- * @throws Exception
2387
- */
2388
2382
function containsOnlyInstancesOf (string $ className ): TraversableContainsOnly
2389
2383
{
2390
2384
return Assert::containsOnlyInstancesOf (...func_get_args ());
@@ -2490,19 +2484,13 @@ function identicalTo(mixed $value): IsIdentical
2490
2484
}
2491
2485
2492
2486
if (!function_exists ('PHPUnit\Framework\isInstanceOf ' )) {
2493
- /**
2494
- * @throws UnknownClassOrInterfaceException
2495
- */
2496
2487
function isInstanceOf (string $ className ): IsInstanceOf
2497
2488
{
2498
2489
return Assert::isInstanceOf (...func_get_args ());
2499
2490
}
2500
2491
}
2501
2492
2502
2493
if (!function_exists ('PHPUnit\Framework\isType ' )) {
2503
- /**
2504
- * @throws Exception
2505
- */
2506
2494
function isType (string $ type ): IsType
2507
2495
{
2508
2496
return Assert::isType (...func_get_args ());
@@ -2538,29 +2526,20 @@ function matches(string $string): StringMatchesFormatDescription
2538
2526
}
2539
2527
2540
2528
if (!function_exists ('PHPUnit\Framework\stringStartsWith ' )) {
2541
- /**
2542
- * @throws InvalidArgumentException
2543
- */
2544
2529
function stringStartsWith (string $ prefix ): StringStartsWith
2545
2530
{
2546
2531
return Assert::stringStartsWith (...func_get_args ());
2547
2532
}
2548
2533
}
2549
2534
2550
2535
if (!function_exists ('PHPUnit\Framework\stringContains ' )) {
2551
- /**
2552
- * @throws InvalidArgumentException
2553
- */
2554
2536
function stringContains (string $ string , bool $ case = true ): StringContains
2555
2537
{
2556
2538
return Assert::stringContains (...func_get_args ());
2557
2539
}
2558
2540
}
2559
2541
2560
2542
if (!function_exists ('PHPUnit\Framework\stringEndsWith ' )) {
2561
- /**
2562
- * @throws InvalidArgumentException
2563
- */
2564
2543
function stringEndsWith (string $ suffix ): StringEndsWith
2565
2544
{
2566
2545
return Assert::stringEndsWith (...func_get_args ());
0 commit comments