Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of PHPUnit.
4
 *
5
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace PHPUnit\Framework;
11
 
12
use function func_get_args;
13
use function function_exists;
14
use ArrayAccess;
15
use Countable;
16
use DOMDocument;
17
use DOMElement;
18
use PHPUnit\Framework\Constraint\ArrayHasKey;
19
use PHPUnit\Framework\Constraint\Callback;
20
use PHPUnit\Framework\Constraint\ClassHasAttribute;
21
use PHPUnit\Framework\Constraint\ClassHasStaticAttribute;
22
use PHPUnit\Framework\Constraint\Constraint;
23
use PHPUnit\Framework\Constraint\Count;
24
use PHPUnit\Framework\Constraint\DirectoryExists;
25
use PHPUnit\Framework\Constraint\FileExists;
26
use PHPUnit\Framework\Constraint\GreaterThan;
27
use PHPUnit\Framework\Constraint\IsAnything;
28
use PHPUnit\Framework\Constraint\IsEmpty;
29
use PHPUnit\Framework\Constraint\IsEqual;
30
use PHPUnit\Framework\Constraint\IsEqualCanonicalizing;
31
use PHPUnit\Framework\Constraint\IsEqualIgnoringCase;
32
use PHPUnit\Framework\Constraint\IsEqualWithDelta;
33
use PHPUnit\Framework\Constraint\IsFalse;
34
use PHPUnit\Framework\Constraint\IsFinite;
35
use PHPUnit\Framework\Constraint\IsIdentical;
36
use PHPUnit\Framework\Constraint\IsInfinite;
37
use PHPUnit\Framework\Constraint\IsInstanceOf;
38
use PHPUnit\Framework\Constraint\IsJson;
39
use PHPUnit\Framework\Constraint\IsNan;
40
use PHPUnit\Framework\Constraint\IsNull;
41
use PHPUnit\Framework\Constraint\IsReadable;
42
use PHPUnit\Framework\Constraint\IsTrue;
43
use PHPUnit\Framework\Constraint\IsType;
44
use PHPUnit\Framework\Constraint\IsWritable;
45
use PHPUnit\Framework\Constraint\LessThan;
46
use PHPUnit\Framework\Constraint\LogicalAnd;
47
use PHPUnit\Framework\Constraint\LogicalNot;
48
use PHPUnit\Framework\Constraint\LogicalOr;
49
use PHPUnit\Framework\Constraint\LogicalXor;
50
use PHPUnit\Framework\Constraint\ObjectEquals;
51
use PHPUnit\Framework\Constraint\ObjectHasAttribute;
52
use PHPUnit\Framework\Constraint\RegularExpression;
53
use PHPUnit\Framework\Constraint\StringContains;
54
use PHPUnit\Framework\Constraint\StringEndsWith;
55
use PHPUnit\Framework\Constraint\StringMatchesFormatDescription;
56
use PHPUnit\Framework\Constraint\StringStartsWith;
57
use PHPUnit\Framework\Constraint\TraversableContainsEqual;
58
use PHPUnit\Framework\Constraint\TraversableContainsIdentical;
59
use PHPUnit\Framework\Constraint\TraversableContainsOnly;
60
use PHPUnit\Framework\MockObject\Rule\AnyInvokedCount as AnyInvokedCountMatcher;
61
use PHPUnit\Framework\MockObject\Rule\InvokedAtIndex as InvokedAtIndexMatcher;
62
use PHPUnit\Framework\MockObject\Rule\InvokedAtLeastCount as InvokedAtLeastCountMatcher;
63
use PHPUnit\Framework\MockObject\Rule\InvokedAtLeastOnce as InvokedAtLeastOnceMatcher;
64
use PHPUnit\Framework\MockObject\Rule\InvokedAtMostCount as InvokedAtMostCountMatcher;
65
use PHPUnit\Framework\MockObject\Rule\InvokedCount as InvokedCountMatcher;
66
use PHPUnit\Framework\MockObject\Stub\ConsecutiveCalls as ConsecutiveCallsStub;
67
use PHPUnit\Framework\MockObject\Stub\Exception as ExceptionStub;
68
use PHPUnit\Framework\MockObject\Stub\ReturnArgument as ReturnArgumentStub;
69
use PHPUnit\Framework\MockObject\Stub\ReturnCallback as ReturnCallbackStub;
70
use PHPUnit\Framework\MockObject\Stub\ReturnSelf as ReturnSelfStub;
71
use PHPUnit\Framework\MockObject\Stub\ReturnStub;
72
use PHPUnit\Framework\MockObject\Stub\ReturnValueMap as ReturnValueMapStub;
73
use Throwable;
74
 
75
if (!function_exists('PHPUnit\Framework\assertArrayHasKey')) {
76
    /**
77
     * Asserts that an array has a specified key.
78
     *
79
     * @param int|string        $key
80
     * @param array|ArrayAccess $array
81
     *
82
     * @throws ExpectationFailedException
83
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
84
     * @throws Exception
85
     *
86
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
87
     *
88
     * @see Assert::assertArrayHasKey
89
     */
90
    function assertArrayHasKey($key, $array, string $message = ''): void
91
    {
92
        Assert::assertArrayHasKey(...func_get_args());
93
    }
94
}
95
 
96
if (!function_exists('PHPUnit\Framework\assertArrayNotHasKey')) {
97
    /**
98
     * Asserts that an array does not have a specified key.
99
     *
100
     * @param int|string        $key
101
     * @param array|ArrayAccess $array
102
     *
103
     * @throws ExpectationFailedException
104
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
105
     * @throws Exception
106
     *
107
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
108
     *
109
     * @see Assert::assertArrayNotHasKey
110
     */
111
    function assertArrayNotHasKey($key, $array, string $message = ''): void
112
    {
113
        Assert::assertArrayNotHasKey(...func_get_args());
114
    }
115
}
116
 
117
if (!function_exists('PHPUnit\Framework\assertContains')) {
118
    /**
119
     * Asserts that a haystack contains a needle.
120
     *
121
     * @throws ExpectationFailedException
122
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
123
     * @throws Exception
124
     *
125
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
126
     *
127
     * @see Assert::assertContains
128
     */
129
    function assertContains($needle, iterable $haystack, string $message = ''): void
130
    {
131
        Assert::assertContains(...func_get_args());
132
    }
133
}
134
 
135
if (!function_exists('PHPUnit\Framework\assertContainsEquals')) {
136
    function assertContainsEquals($needle, iterable $haystack, string $message = ''): void
137
    {
138
        Assert::assertContainsEquals(...func_get_args());
139
    }
140
}
141
 
142
if (!function_exists('PHPUnit\Framework\assertNotContains')) {
143
    /**
144
     * Asserts that a haystack does not contain a needle.
145
     *
146
     * @throws ExpectationFailedException
147
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
148
     * @throws Exception
149
     *
150
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
151
     *
152
     * @see Assert::assertNotContains
153
     */
154
    function assertNotContains($needle, iterable $haystack, string $message = ''): void
155
    {
156
        Assert::assertNotContains(...func_get_args());
157
    }
158
}
159
 
160
if (!function_exists('PHPUnit\Framework\assertNotContainsEquals')) {
161
    function assertNotContainsEquals($needle, iterable $haystack, string $message = ''): void
162
    {
163
        Assert::assertNotContainsEquals(...func_get_args());
164
    }
165
}
166
 
167
if (!function_exists('PHPUnit\Framework\assertContainsOnly')) {
168
    /**
169
     * Asserts that a haystack contains only values of a given type.
170
     *
171
     * @throws ExpectationFailedException
172
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
173
     *
174
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
175
     *
176
     * @see Assert::assertContainsOnly
177
     */
178
    function assertContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = null, string $message = ''): void
179
    {
180
        Assert::assertContainsOnly(...func_get_args());
181
    }
182
}
183
 
184
if (!function_exists('PHPUnit\Framework\assertContainsOnlyInstancesOf')) {
185
    /**
186
     * Asserts that a haystack contains only instances of a given class name.
187
     *
188
     * @throws ExpectationFailedException
189
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
190
     *
191
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
192
     *
193
     * @see Assert::assertContainsOnlyInstancesOf
194
     */
195
    function assertContainsOnlyInstancesOf(string $className, iterable $haystack, string $message = ''): void
196
    {
197
        Assert::assertContainsOnlyInstancesOf(...func_get_args());
198
    }
199
}
200
 
201
if (!function_exists('PHPUnit\Framework\assertNotContainsOnly')) {
202
    /**
203
     * Asserts that a haystack does not contain only values of a given type.
204
     *
205
     * @throws ExpectationFailedException
206
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
207
     *
208
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
209
     *
210
     * @see Assert::assertNotContainsOnly
211
     */
212
    function assertNotContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = null, string $message = ''): void
213
    {
214
        Assert::assertNotContainsOnly(...func_get_args());
215
    }
216
}
217
 
218
if (!function_exists('PHPUnit\Framework\assertCount')) {
219
    /**
220
     * Asserts the number of elements of an array, Countable or Traversable.
221
     *
222
     * @param Countable|iterable $haystack
223
     *
224
     * @throws ExpectationFailedException
225
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
226
     * @throws Exception
227
     *
228
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
229
     *
230
     * @see Assert::assertCount
231
     */
232
    function assertCount(int $expectedCount, $haystack, string $message = ''): void
233
    {
234
        Assert::assertCount(...func_get_args());
235
    }
236
}
237
 
238
if (!function_exists('PHPUnit\Framework\assertNotCount')) {
239
    /**
240
     * Asserts the number of elements of an array, Countable or Traversable.
241
     *
242
     * @param Countable|iterable $haystack
243
     *
244
     * @throws ExpectationFailedException
245
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
246
     * @throws Exception
247
     *
248
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
249
     *
250
     * @see Assert::assertNotCount
251
     */
252
    function assertNotCount(int $expectedCount, $haystack, string $message = ''): void
253
    {
254
        Assert::assertNotCount(...func_get_args());
255
    }
256
}
257
 
258
if (!function_exists('PHPUnit\Framework\assertEquals')) {
259
    /**
260
     * Asserts that two variables are equal.
261
     *
262
     * @throws ExpectationFailedException
263
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
264
     *
265
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
266
     *
267
     * @see Assert::assertEquals
268
     */
269
    function assertEquals($expected, $actual, string $message = ''): void
270
    {
271
        Assert::assertEquals(...func_get_args());
272
    }
273
}
274
 
275
if (!function_exists('PHPUnit\Framework\assertEqualsCanonicalizing')) {
276
    /**
277
     * Asserts that two variables are equal (canonicalizing).
278
     *
279
     * @throws ExpectationFailedException
280
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
281
     *
282
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
283
     *
284
     * @see Assert::assertEqualsCanonicalizing
285
     */
286
    function assertEqualsCanonicalizing($expected, $actual, string $message = ''): void
287
    {
288
        Assert::assertEqualsCanonicalizing(...func_get_args());
289
    }
290
}
291
 
292
if (!function_exists('PHPUnit\Framework\assertEqualsIgnoringCase')) {
293
    /**
294
     * Asserts that two variables are equal (ignoring case).
295
     *
296
     * @throws ExpectationFailedException
297
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
298
     *
299
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
300
     *
301
     * @see Assert::assertEqualsIgnoringCase
302
     */
303
    function assertEqualsIgnoringCase($expected, $actual, string $message = ''): void
304
    {
305
        Assert::assertEqualsIgnoringCase(...func_get_args());
306
    }
307
}
308
 
309
if (!function_exists('PHPUnit\Framework\assertEqualsWithDelta')) {
310
    /**
311
     * Asserts that two variables are equal (with delta).
312
     *
313
     * @throws ExpectationFailedException
314
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
315
     *
316
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
317
     *
318
     * @see Assert::assertEqualsWithDelta
319
     */
320
    function assertEqualsWithDelta($expected, $actual, float $delta, string $message = ''): void
321
    {
322
        Assert::assertEqualsWithDelta(...func_get_args());
323
    }
324
}
325
 
326
if (!function_exists('PHPUnit\Framework\assertNotEquals')) {
327
    /**
328
     * Asserts that two variables are not equal.
329
     *
330
     * @throws ExpectationFailedException
331
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
332
     *
333
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
334
     *
335
     * @see Assert::assertNotEquals
336
     */
337
    function assertNotEquals($expected, $actual, string $message = ''): void
338
    {
339
        Assert::assertNotEquals(...func_get_args());
340
    }
341
}
342
 
343
if (!function_exists('PHPUnit\Framework\assertNotEqualsCanonicalizing')) {
344
    /**
345
     * Asserts that two variables are not equal (canonicalizing).
346
     *
347
     * @throws ExpectationFailedException
348
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
349
     *
350
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
351
     *
352
     * @see Assert::assertNotEqualsCanonicalizing
353
     */
354
    function assertNotEqualsCanonicalizing($expected, $actual, string $message = ''): void
355
    {
356
        Assert::assertNotEqualsCanonicalizing(...func_get_args());
357
    }
358
}
359
 
360
if (!function_exists('PHPUnit\Framework\assertNotEqualsIgnoringCase')) {
361
    /**
362
     * Asserts that two variables are not equal (ignoring case).
363
     *
364
     * @throws ExpectationFailedException
365
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
366
     *
367
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
368
     *
369
     * @see Assert::assertNotEqualsIgnoringCase
370
     */
371
    function assertNotEqualsIgnoringCase($expected, $actual, string $message = ''): void
372
    {
373
        Assert::assertNotEqualsIgnoringCase(...func_get_args());
374
    }
375
}
376
 
377
if (!function_exists('PHPUnit\Framework\assertNotEqualsWithDelta')) {
378
    /**
379
     * Asserts that two variables are not equal (with delta).
380
     *
381
     * @throws ExpectationFailedException
382
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
383
     *
384
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
385
     *
386
     * @see Assert::assertNotEqualsWithDelta
387
     */
388
    function assertNotEqualsWithDelta($expected, $actual, float $delta, string $message = ''): void
389
    {
390
        Assert::assertNotEqualsWithDelta(...func_get_args());
391
    }
392
}
393
 
394
if (!function_exists('PHPUnit\Framework\assertObjectEquals')) {
395
    /**
396
     * @throws ExpectationFailedException
397
     *
398
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
399
     *
400
     * @see Assert::assertObjectEquals
401
     */
402
    function assertObjectEquals(object $expected, object $actual, string $method = 'equals', string $message = ''): void
403
    {
404
        Assert::assertObjectEquals(...func_get_args());
405
    }
406
}
407
 
408
if (!function_exists('PHPUnit\Framework\assertEmpty')) {
409
    /**
410
     * Asserts that a variable is empty.
411
     *
412
     * @throws ExpectationFailedException
413
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
414
     *
415
     * @psalm-assert empty $actual
416
     *
417
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
418
     *
419
     * @see Assert::assertEmpty
420
     */
421
    function assertEmpty($actual, string $message = ''): void
422
    {
423
        Assert::assertEmpty(...func_get_args());
424
    }
425
}
426
 
427
if (!function_exists('PHPUnit\Framework\assertNotEmpty')) {
428
    /**
429
     * Asserts that a variable is not empty.
430
     *
431
     * @throws ExpectationFailedException
432
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
433
     *
434
     * @psalm-assert !empty $actual
435
     *
436
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
437
     *
438
     * @see Assert::assertNotEmpty
439
     */
440
    function assertNotEmpty($actual, string $message = ''): void
441
    {
442
        Assert::assertNotEmpty(...func_get_args());
443
    }
444
}
445
 
446
if (!function_exists('PHPUnit\Framework\assertGreaterThan')) {
447
    /**
448
     * Asserts that a value is greater than another value.
449
     *
450
     * @throws ExpectationFailedException
451
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
452
     *
453
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
454
     *
455
     * @see Assert::assertGreaterThan
456
     */
457
    function assertGreaterThan($expected, $actual, string $message = ''): void
458
    {
459
        Assert::assertGreaterThan(...func_get_args());
460
    }
461
}
462
 
463
if (!function_exists('PHPUnit\Framework\assertGreaterThanOrEqual')) {
464
    /**
465
     * Asserts that a value is greater than or equal to another value.
466
     *
467
     * @throws ExpectationFailedException
468
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
469
     *
470
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
471
     *
472
     * @see Assert::assertGreaterThanOrEqual
473
     */
474
    function assertGreaterThanOrEqual($expected, $actual, string $message = ''): void
475
    {
476
        Assert::assertGreaterThanOrEqual(...func_get_args());
477
    }
478
}
479
 
480
if (!function_exists('PHPUnit\Framework\assertLessThan')) {
481
    /**
482
     * Asserts that a value is smaller than another value.
483
     *
484
     * @throws ExpectationFailedException
485
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
486
     *
487
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
488
     *
489
     * @see Assert::assertLessThan
490
     */
491
    function assertLessThan($expected, $actual, string $message = ''): void
492
    {
493
        Assert::assertLessThan(...func_get_args());
494
    }
495
}
496
 
497
if (!function_exists('PHPUnit\Framework\assertLessThanOrEqual')) {
498
    /**
499
     * Asserts that a value is smaller than or equal to another value.
500
     *
501
     * @throws ExpectationFailedException
502
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
503
     *
504
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
505
     *
506
     * @see Assert::assertLessThanOrEqual
507
     */
508
    function assertLessThanOrEqual($expected, $actual, string $message = ''): void
509
    {
510
        Assert::assertLessThanOrEqual(...func_get_args());
511
    }
512
}
513
 
514
if (!function_exists('PHPUnit\Framework\assertFileEquals')) {
515
    /**
516
     * Asserts that the contents of one file is equal to the contents of another
517
     * file.
518
     *
519
     * @throws ExpectationFailedException
520
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
521
     *
522
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
523
     *
524
     * @see Assert::assertFileEquals
525
     */
526
    function assertFileEquals(string $expected, string $actual, string $message = ''): void
527
    {
528
        Assert::assertFileEquals(...func_get_args());
529
    }
530
}
531
 
532
if (!function_exists('PHPUnit\Framework\assertFileEqualsCanonicalizing')) {
533
    /**
534
     * Asserts that the contents of one file is equal to the contents of another
535
     * file (canonicalizing).
536
     *
537
     * @throws ExpectationFailedException
538
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
539
     *
540
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
541
     *
542
     * @see Assert::assertFileEqualsCanonicalizing
543
     */
544
    function assertFileEqualsCanonicalizing(string $expected, string $actual, string $message = ''): void
545
    {
546
        Assert::assertFileEqualsCanonicalizing(...func_get_args());
547
    }
548
}
549
 
550
if (!function_exists('PHPUnit\Framework\assertFileEqualsIgnoringCase')) {
551
    /**
552
     * Asserts that the contents of one file is equal to the contents of another
553
     * file (ignoring case).
554
     *
555
     * @throws ExpectationFailedException
556
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
557
     *
558
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
559
     *
560
     * @see Assert::assertFileEqualsIgnoringCase
561
     */
562
    function assertFileEqualsIgnoringCase(string $expected, string $actual, string $message = ''): void
563
    {
564
        Assert::assertFileEqualsIgnoringCase(...func_get_args());
565
    }
566
}
567
 
568
if (!function_exists('PHPUnit\Framework\assertFileNotEquals')) {
569
    /**
570
     * Asserts that the contents of one file is not equal to the contents of
571
     * another file.
572
     *
573
     * @throws ExpectationFailedException
574
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
575
     *
576
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
577
     *
578
     * @see Assert::assertFileNotEquals
579
     */
580
    function assertFileNotEquals(string $expected, string $actual, string $message = ''): void
581
    {
582
        Assert::assertFileNotEquals(...func_get_args());
583
    }
584
}
585
 
586
if (!function_exists('PHPUnit\Framework\assertFileNotEqualsCanonicalizing')) {
587
    /**
588
     * Asserts that the contents of one file is not equal to the contents of another
589
     * file (canonicalizing).
590
     *
591
     * @throws ExpectationFailedException
592
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
593
     *
594
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
595
     *
596
     * @see Assert::assertFileNotEqualsCanonicalizing
597
     */
598
    function assertFileNotEqualsCanonicalizing(string $expected, string $actual, string $message = ''): void
599
    {
600
        Assert::assertFileNotEqualsCanonicalizing(...func_get_args());
601
    }
602
}
603
 
604
if (!function_exists('PHPUnit\Framework\assertFileNotEqualsIgnoringCase')) {
605
    /**
606
     * Asserts that the contents of one file is not equal to the contents of another
607
     * file (ignoring case).
608
     *
609
     * @throws ExpectationFailedException
610
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
611
     *
612
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
613
     *
614
     * @see Assert::assertFileNotEqualsIgnoringCase
615
     */
616
    function assertFileNotEqualsIgnoringCase(string $expected, string $actual, string $message = ''): void
617
    {
618
        Assert::assertFileNotEqualsIgnoringCase(...func_get_args());
619
    }
620
}
621
 
622
if (!function_exists('PHPUnit\Framework\assertStringEqualsFile')) {
623
    /**
624
     * Asserts that the contents of a string is equal
625
     * to the contents of a file.
626
     *
627
     * @throws ExpectationFailedException
628
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
629
     *
630
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
631
     *
632
     * @see Assert::assertStringEqualsFile
633
     */
634
    function assertStringEqualsFile(string $expectedFile, string $actualString, string $message = ''): void
635
    {
636
        Assert::assertStringEqualsFile(...func_get_args());
637
    }
638
}
639
 
640
if (!function_exists('PHPUnit\Framework\assertStringEqualsFileCanonicalizing')) {
641
    /**
642
     * Asserts that the contents of a string is equal
643
     * to the contents of a file (canonicalizing).
644
     *
645
     * @throws ExpectationFailedException
646
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
647
     *
648
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
649
     *
650
     * @see Assert::assertStringEqualsFileCanonicalizing
651
     */
652
    function assertStringEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = ''): void
653
    {
654
        Assert::assertStringEqualsFileCanonicalizing(...func_get_args());
655
    }
656
}
657
 
658
if (!function_exists('PHPUnit\Framework\assertStringEqualsFileIgnoringCase')) {
659
    /**
660
     * Asserts that the contents of a string is equal
661
     * to the contents of a file (ignoring case).
662
     *
663
     * @throws ExpectationFailedException
664
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
665
     *
666
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
667
     *
668
     * @see Assert::assertStringEqualsFileIgnoringCase
669
     */
670
    function assertStringEqualsFileIgnoringCase(string $expectedFile, string $actualString, string $message = ''): void
671
    {
672
        Assert::assertStringEqualsFileIgnoringCase(...func_get_args());
673
    }
674
}
675
 
676
if (!function_exists('PHPUnit\Framework\assertStringNotEqualsFile')) {
677
    /**
678
     * Asserts that the contents of a string is not equal
679
     * to the contents of a file.
680
     *
681
     * @throws ExpectationFailedException
682
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
683
     *
684
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
685
     *
686
     * @see Assert::assertStringNotEqualsFile
687
     */
688
    function assertStringNotEqualsFile(string $expectedFile, string $actualString, string $message = ''): void
689
    {
690
        Assert::assertStringNotEqualsFile(...func_get_args());
691
    }
692
}
693
 
694
if (!function_exists('PHPUnit\Framework\assertStringNotEqualsFileCanonicalizing')) {
695
    /**
696
     * Asserts that the contents of a string is not equal
697
     * to the contents of a file (canonicalizing).
698
     *
699
     * @throws ExpectationFailedException
700
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
701
     *
702
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
703
     *
704
     * @see Assert::assertStringNotEqualsFileCanonicalizing
705
     */
706
    function assertStringNotEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = ''): void
707
    {
708
        Assert::assertStringNotEqualsFileCanonicalizing(...func_get_args());
709
    }
710
}
711
 
712
if (!function_exists('PHPUnit\Framework\assertStringNotEqualsFileIgnoringCase')) {
713
    /**
714
     * Asserts that the contents of a string is not equal
715
     * to the contents of a file (ignoring case).
716
     *
717
     * @throws ExpectationFailedException
718
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
719
     *
720
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
721
     *
722
     * @see Assert::assertStringNotEqualsFileIgnoringCase
723
     */
724
    function assertStringNotEqualsFileIgnoringCase(string $expectedFile, string $actualString, string $message = ''): void
725
    {
726
        Assert::assertStringNotEqualsFileIgnoringCase(...func_get_args());
727
    }
728
}
729
 
730
if (!function_exists('PHPUnit\Framework\assertIsReadable')) {
731
    /**
732
     * Asserts that a file/dir is readable.
733
     *
734
     * @throws ExpectationFailedException
735
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
736
     *
737
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
738
     *
739
     * @see Assert::assertIsReadable
740
     */
741
    function assertIsReadable(string $filename, string $message = ''): void
742
    {
743
        Assert::assertIsReadable(...func_get_args());
744
    }
745
}
746
 
747
if (!function_exists('PHPUnit\Framework\assertIsNotReadable')) {
748
    /**
749
     * Asserts that a file/dir exists and is not readable.
750
     *
751
     * @throws ExpectationFailedException
752
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
753
     *
754
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
755
     *
756
     * @see Assert::assertIsNotReadable
757
     */
758
    function assertIsNotReadable(string $filename, string $message = ''): void
759
    {
760
        Assert::assertIsNotReadable(...func_get_args());
761
    }
762
}
763
 
764
if (!function_exists('PHPUnit\Framework\assertNotIsReadable')) {
765
    /**
766
     * Asserts that a file/dir exists and is not readable.
767
     *
768
     * @throws ExpectationFailedException
769
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
770
     *
771
     * @codeCoverageIgnore
772
     *
773
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4062
774
     *
775
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
776
     *
777
     * @see Assert::assertNotIsReadable
778
     */
779
    function assertNotIsReadable(string $filename, string $message = ''): void
780
    {
781
        Assert::assertNotIsReadable(...func_get_args());
782
    }
783
}
784
 
785
if (!function_exists('PHPUnit\Framework\assertIsWritable')) {
786
    /**
787
     * Asserts that a file/dir exists and is writable.
788
     *
789
     * @throws ExpectationFailedException
790
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
791
     *
792
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
793
     *
794
     * @see Assert::assertIsWritable
795
     */
796
    function assertIsWritable(string $filename, string $message = ''): void
797
    {
798
        Assert::assertIsWritable(...func_get_args());
799
    }
800
}
801
 
802
if (!function_exists('PHPUnit\Framework\assertIsNotWritable')) {
803
    /**
804
     * Asserts that a file/dir exists and is not writable.
805
     *
806
     * @throws ExpectationFailedException
807
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
808
     *
809
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
810
     *
811
     * @see Assert::assertIsNotWritable
812
     */
813
    function assertIsNotWritable(string $filename, string $message = ''): void
814
    {
815
        Assert::assertIsNotWritable(...func_get_args());
816
    }
817
}
818
 
819
if (!function_exists('PHPUnit\Framework\assertNotIsWritable')) {
820
    /**
821
     * Asserts that a file/dir exists and is not writable.
822
     *
823
     * @throws ExpectationFailedException
824
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
825
     *
826
     * @codeCoverageIgnore
827
     *
828
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4065
829
     *
830
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
831
     *
832
     * @see Assert::assertNotIsWritable
833
     */
834
    function assertNotIsWritable(string $filename, string $message = ''): void
835
    {
836
        Assert::assertNotIsWritable(...func_get_args());
837
    }
838
}
839
 
840
if (!function_exists('PHPUnit\Framework\assertDirectoryExists')) {
841
    /**
842
     * Asserts that a directory exists.
843
     *
844
     * @throws ExpectationFailedException
845
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
846
     *
847
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
848
     *
849
     * @see Assert::assertDirectoryExists
850
     */
851
    function assertDirectoryExists(string $directory, string $message = ''): void
852
    {
853
        Assert::assertDirectoryExists(...func_get_args());
854
    }
855
}
856
 
857
if (!function_exists('PHPUnit\Framework\assertDirectoryDoesNotExist')) {
858
    /**
859
     * Asserts that a directory does not exist.
860
     *
861
     * @throws ExpectationFailedException
862
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
863
     *
864
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
865
     *
866
     * @see Assert::assertDirectoryDoesNotExist
867
     */
868
    function assertDirectoryDoesNotExist(string $directory, string $message = ''): void
869
    {
870
        Assert::assertDirectoryDoesNotExist(...func_get_args());
871
    }
872
}
873
 
874
if (!function_exists('PHPUnit\Framework\assertDirectoryNotExists')) {
875
    /**
876
     * Asserts that a directory does not exist.
877
     *
878
     * @throws ExpectationFailedException
879
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
880
     *
881
     * @codeCoverageIgnore
882
     *
883
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4068
884
     *
885
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
886
     *
887
     * @see Assert::assertDirectoryNotExists
888
     */
889
    function assertDirectoryNotExists(string $directory, string $message = ''): void
890
    {
891
        Assert::assertDirectoryNotExists(...func_get_args());
892
    }
893
}
894
 
895
if (!function_exists('PHPUnit\Framework\assertDirectoryIsReadable')) {
896
    /**
897
     * Asserts that a directory exists and is readable.
898
     *
899
     * @throws ExpectationFailedException
900
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
901
     *
902
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
903
     *
904
     * @see Assert::assertDirectoryIsReadable
905
     */
906
    function assertDirectoryIsReadable(string $directory, string $message = ''): void
907
    {
908
        Assert::assertDirectoryIsReadable(...func_get_args());
909
    }
910
}
911
 
912
if (!function_exists('PHPUnit\Framework\assertDirectoryIsNotReadable')) {
913
    /**
914
     * Asserts that a directory exists and is not readable.
915
     *
916
     * @throws ExpectationFailedException
917
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
918
     *
919
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
920
     *
921
     * @see Assert::assertDirectoryIsNotReadable
922
     */
923
    function assertDirectoryIsNotReadable(string $directory, string $message = ''): void
924
    {
925
        Assert::assertDirectoryIsNotReadable(...func_get_args());
926
    }
927
}
928
 
929
if (!function_exists('PHPUnit\Framework\assertDirectoryNotIsReadable')) {
930
    /**
931
     * Asserts that a directory exists and is not readable.
932
     *
933
     * @throws ExpectationFailedException
934
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
935
     *
936
     * @codeCoverageIgnore
937
     *
938
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4071
939
     *
940
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
941
     *
942
     * @see Assert::assertDirectoryNotIsReadable
943
     */
944
    function assertDirectoryNotIsReadable(string $directory, string $message = ''): void
945
    {
946
        Assert::assertDirectoryNotIsReadable(...func_get_args());
947
    }
948
}
949
 
950
if (!function_exists('PHPUnit\Framework\assertDirectoryIsWritable')) {
951
    /**
952
     * Asserts that a directory exists and is writable.
953
     *
954
     * @throws ExpectationFailedException
955
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
956
     *
957
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
958
     *
959
     * @see Assert::assertDirectoryIsWritable
960
     */
961
    function assertDirectoryIsWritable(string $directory, string $message = ''): void
962
    {
963
        Assert::assertDirectoryIsWritable(...func_get_args());
964
    }
965
}
966
 
967
if (!function_exists('PHPUnit\Framework\assertDirectoryIsNotWritable')) {
968
    /**
969
     * Asserts that a directory exists and is not writable.
970
     *
971
     * @throws ExpectationFailedException
972
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
973
     *
974
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
975
     *
976
     * @see Assert::assertDirectoryIsNotWritable
977
     */
978
    function assertDirectoryIsNotWritable(string $directory, string $message = ''): void
979
    {
980
        Assert::assertDirectoryIsNotWritable(...func_get_args());
981
    }
982
}
983
 
984
if (!function_exists('PHPUnit\Framework\assertDirectoryNotIsWritable')) {
985
    /**
986
     * Asserts that a directory exists and is not writable.
987
     *
988
     * @throws ExpectationFailedException
989
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
990
     *
991
     * @codeCoverageIgnore
992
     *
993
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4074
994
     *
995
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
996
     *
997
     * @see Assert::assertDirectoryNotIsWritable
998
     */
999
    function assertDirectoryNotIsWritable(string $directory, string $message = ''): void
1000
    {
1001
        Assert::assertDirectoryNotIsWritable(...func_get_args());
1002
    }
1003
}
1004
 
1005
if (!function_exists('PHPUnit\Framework\assertFileExists')) {
1006
    /**
1007
     * Asserts that a file exists.
1008
     *
1009
     * @throws ExpectationFailedException
1010
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1011
     *
1012
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1013
     *
1014
     * @see Assert::assertFileExists
1015
     */
1016
    function assertFileExists(string $filename, string $message = ''): void
1017
    {
1018
        Assert::assertFileExists(...func_get_args());
1019
    }
1020
}
1021
 
1022
if (!function_exists('PHPUnit\Framework\assertFileDoesNotExist')) {
1023
    /**
1024
     * Asserts that a file does not exist.
1025
     *
1026
     * @throws ExpectationFailedException
1027
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1028
     *
1029
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1030
     *
1031
     * @see Assert::assertFileDoesNotExist
1032
     */
1033
    function assertFileDoesNotExist(string $filename, string $message = ''): void
1034
    {
1035
        Assert::assertFileDoesNotExist(...func_get_args());
1036
    }
1037
}
1038
 
1039
if (!function_exists('PHPUnit\Framework\assertFileNotExists')) {
1040
    /**
1041
     * Asserts that a file does not exist.
1042
     *
1043
     * @throws ExpectationFailedException
1044
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1045
     *
1046
     * @codeCoverageIgnore
1047
     *
1048
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4077
1049
     *
1050
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1051
     *
1052
     * @see Assert::assertFileNotExists
1053
     */
1054
    function assertFileNotExists(string $filename, string $message = ''): void
1055
    {
1056
        Assert::assertFileNotExists(...func_get_args());
1057
    }
1058
}
1059
 
1060
if (!function_exists('PHPUnit\Framework\assertFileIsReadable')) {
1061
    /**
1062
     * Asserts that a file exists and is readable.
1063
     *
1064
     * @throws ExpectationFailedException
1065
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1066
     *
1067
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1068
     *
1069
     * @see Assert::assertFileIsReadable
1070
     */
1071
    function assertFileIsReadable(string $file, string $message = ''): void
1072
    {
1073
        Assert::assertFileIsReadable(...func_get_args());
1074
    }
1075
}
1076
 
1077
if (!function_exists('PHPUnit\Framework\assertFileIsNotReadable')) {
1078
    /**
1079
     * Asserts that a file exists and is not readable.
1080
     *
1081
     * @throws ExpectationFailedException
1082
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1083
     *
1084
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1085
     *
1086
     * @see Assert::assertFileIsNotReadable
1087
     */
1088
    function assertFileIsNotReadable(string $file, string $message = ''): void
1089
    {
1090
        Assert::assertFileIsNotReadable(...func_get_args());
1091
    }
1092
}
1093
 
1094
if (!function_exists('PHPUnit\Framework\assertFileNotIsReadable')) {
1095
    /**
1096
     * Asserts that a file exists and is not readable.
1097
     *
1098
     * @throws ExpectationFailedException
1099
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1100
     *
1101
     * @codeCoverageIgnore
1102
     *
1103
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4080
1104
     *
1105
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1106
     *
1107
     * @see Assert::assertFileNotIsReadable
1108
     */
1109
    function assertFileNotIsReadable(string $file, string $message = ''): void
1110
    {
1111
        Assert::assertFileNotIsReadable(...func_get_args());
1112
    }
1113
}
1114
 
1115
if (!function_exists('PHPUnit\Framework\assertFileIsWritable')) {
1116
    /**
1117
     * Asserts that a file exists and is writable.
1118
     *
1119
     * @throws ExpectationFailedException
1120
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1121
     *
1122
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1123
     *
1124
     * @see Assert::assertFileIsWritable
1125
     */
1126
    function assertFileIsWritable(string $file, string $message = ''): void
1127
    {
1128
        Assert::assertFileIsWritable(...func_get_args());
1129
    }
1130
}
1131
 
1132
if (!function_exists('PHPUnit\Framework\assertFileIsNotWritable')) {
1133
    /**
1134
     * Asserts that a file exists and is not writable.
1135
     *
1136
     * @throws ExpectationFailedException
1137
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1138
     *
1139
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1140
     *
1141
     * @see Assert::assertFileIsNotWritable
1142
     */
1143
    function assertFileIsNotWritable(string $file, string $message = ''): void
1144
    {
1145
        Assert::assertFileIsNotWritable(...func_get_args());
1146
    }
1147
}
1148
 
1149
if (!function_exists('PHPUnit\Framework\assertFileNotIsWritable')) {
1150
    /**
1151
     * Asserts that a file exists and is not writable.
1152
     *
1153
     * @throws ExpectationFailedException
1154
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1155
     *
1156
     * @codeCoverageIgnore
1157
     *
1158
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4083
1159
     *
1160
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1161
     *
1162
     * @see Assert::assertFileNotIsWritable
1163
     */
1164
    function assertFileNotIsWritable(string $file, string $message = ''): void
1165
    {
1166
        Assert::assertFileNotIsWritable(...func_get_args());
1167
    }
1168
}
1169
 
1170
if (!function_exists('PHPUnit\Framework\assertTrue')) {
1171
    /**
1172
     * Asserts that a condition is true.
1173
     *
1174
     * @throws ExpectationFailedException
1175
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1176
     *
1177
     * @psalm-assert true $condition
1178
     *
1179
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1180
     *
1181
     * @see Assert::assertTrue
1182
     */
1183
    function assertTrue($condition, string $message = ''): void
1184
    {
1185
        Assert::assertTrue(...func_get_args());
1186
    }
1187
}
1188
 
1189
if (!function_exists('PHPUnit\Framework\assertNotTrue')) {
1190
    /**
1191
     * Asserts that a condition is not true.
1192
     *
1193
     * @throws ExpectationFailedException
1194
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1195
     *
1196
     * @psalm-assert !true $condition
1197
     *
1198
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1199
     *
1200
     * @see Assert::assertNotTrue
1201
     */
1202
    function assertNotTrue($condition, string $message = ''): void
1203
    {
1204
        Assert::assertNotTrue(...func_get_args());
1205
    }
1206
}
1207
 
1208
if (!function_exists('PHPUnit\Framework\assertFalse')) {
1209
    /**
1210
     * Asserts that a condition is false.
1211
     *
1212
     * @throws ExpectationFailedException
1213
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1214
     *
1215
     * @psalm-assert false $condition
1216
     *
1217
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1218
     *
1219
     * @see Assert::assertFalse
1220
     */
1221
    function assertFalse($condition, string $message = ''): void
1222
    {
1223
        Assert::assertFalse(...func_get_args());
1224
    }
1225
}
1226
 
1227
if (!function_exists('PHPUnit\Framework\assertNotFalse')) {
1228
    /**
1229
     * Asserts that a condition is not false.
1230
     *
1231
     * @throws ExpectationFailedException
1232
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1233
     *
1234
     * @psalm-assert !false $condition
1235
     *
1236
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1237
     *
1238
     * @see Assert::assertNotFalse
1239
     */
1240
    function assertNotFalse($condition, string $message = ''): void
1241
    {
1242
        Assert::assertNotFalse(...func_get_args());
1243
    }
1244
}
1245
 
1246
if (!function_exists('PHPUnit\Framework\assertNull')) {
1247
    /**
1248
     * Asserts that a variable is null.
1249
     *
1250
     * @throws ExpectationFailedException
1251
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1252
     *
1253
     * @psalm-assert null $actual
1254
     *
1255
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1256
     *
1257
     * @see Assert::assertNull
1258
     */
1259
    function assertNull($actual, string $message = ''): void
1260
    {
1261
        Assert::assertNull(...func_get_args());
1262
    }
1263
}
1264
 
1265
if (!function_exists('PHPUnit\Framework\assertNotNull')) {
1266
    /**
1267
     * Asserts that a variable is not null.
1268
     *
1269
     * @throws ExpectationFailedException
1270
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1271
     *
1272
     * @psalm-assert !null $actual
1273
     *
1274
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1275
     *
1276
     * @see Assert::assertNotNull
1277
     */
1278
    function assertNotNull($actual, string $message = ''): void
1279
    {
1280
        Assert::assertNotNull(...func_get_args());
1281
    }
1282
}
1283
 
1284
if (!function_exists('PHPUnit\Framework\assertFinite')) {
1285
    /**
1286
     * Asserts that a variable is finite.
1287
     *
1288
     * @throws ExpectationFailedException
1289
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1290
     *
1291
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1292
     *
1293
     * @see Assert::assertFinite
1294
     */
1295
    function assertFinite($actual, string $message = ''): void
1296
    {
1297
        Assert::assertFinite(...func_get_args());
1298
    }
1299
}
1300
 
1301
if (!function_exists('PHPUnit\Framework\assertInfinite')) {
1302
    /**
1303
     * Asserts that a variable is infinite.
1304
     *
1305
     * @throws ExpectationFailedException
1306
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1307
     *
1308
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1309
     *
1310
     * @see Assert::assertInfinite
1311
     */
1312
    function assertInfinite($actual, string $message = ''): void
1313
    {
1314
        Assert::assertInfinite(...func_get_args());
1315
    }
1316
}
1317
 
1318
if (!function_exists('PHPUnit\Framework\assertNan')) {
1319
    /**
1320
     * Asserts that a variable is nan.
1321
     *
1322
     * @throws ExpectationFailedException
1323
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1324
     *
1325
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1326
     *
1327
     * @see Assert::assertNan
1328
     */
1329
    function assertNan($actual, string $message = ''): void
1330
    {
1331
        Assert::assertNan(...func_get_args());
1332
    }
1333
}
1334
 
1335
if (!function_exists('PHPUnit\Framework\assertClassHasAttribute')) {
1336
    /**
1337
     * Asserts that a class has a specified attribute.
1338
     *
1339
     * @throws ExpectationFailedException
1340
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1341
     * @throws Exception
1342
     *
1343
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1344
     *
1345
     * @see Assert::assertClassHasAttribute
1346
     */
1347
    function assertClassHasAttribute(string $attributeName, string $className, string $message = ''): void
1348
    {
1349
        Assert::assertClassHasAttribute(...func_get_args());
1350
    }
1351
}
1352
 
1353
if (!function_exists('PHPUnit\Framework\assertClassNotHasAttribute')) {
1354
    /**
1355
     * Asserts that a class does not have a specified attribute.
1356
     *
1357
     * @throws ExpectationFailedException
1358
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1359
     * @throws Exception
1360
     *
1361
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1362
     *
1363
     * @see Assert::assertClassNotHasAttribute
1364
     */
1365
    function assertClassNotHasAttribute(string $attributeName, string $className, string $message = ''): void
1366
    {
1367
        Assert::assertClassNotHasAttribute(...func_get_args());
1368
    }
1369
}
1370
 
1371
if (!function_exists('PHPUnit\Framework\assertClassHasStaticAttribute')) {
1372
    /**
1373
     * Asserts that a class has a specified static attribute.
1374
     *
1375
     * @throws ExpectationFailedException
1376
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1377
     * @throws Exception
1378
     *
1379
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1380
     *
1381
     * @see Assert::assertClassHasStaticAttribute
1382
     */
1383
    function assertClassHasStaticAttribute(string $attributeName, string $className, string $message = ''): void
1384
    {
1385
        Assert::assertClassHasStaticAttribute(...func_get_args());
1386
    }
1387
}
1388
 
1389
if (!function_exists('PHPUnit\Framework\assertClassNotHasStaticAttribute')) {
1390
    /**
1391
     * Asserts that a class does not have a specified static attribute.
1392
     *
1393
     * @throws ExpectationFailedException
1394
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1395
     * @throws Exception
1396
     *
1397
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1398
     *
1399
     * @see Assert::assertClassNotHasStaticAttribute
1400
     */
1401
    function assertClassNotHasStaticAttribute(string $attributeName, string $className, string $message = ''): void
1402
    {
1403
        Assert::assertClassNotHasStaticAttribute(...func_get_args());
1404
    }
1405
}
1406
 
1407
if (!function_exists('PHPUnit\Framework\assertObjectHasAttribute')) {
1408
    /**
1409
     * Asserts that an object has a specified attribute.
1410
     *
1411
     * @param object $object
1412
     *
1413
     * @throws ExpectationFailedException
1414
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1415
     * @throws Exception
1416
     *
1417
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1418
     *
1419
     * @see Assert::assertObjectHasAttribute
1420
     */
1421
    function assertObjectHasAttribute(string $attributeName, $object, string $message = ''): void
1422
    {
1423
        Assert::assertObjectHasAttribute(...func_get_args());
1424
    }
1425
}
1426
 
1427
if (!function_exists('PHPUnit\Framework\assertObjectNotHasAttribute')) {
1428
    /**
1429
     * Asserts that an object does not have a specified attribute.
1430
     *
1431
     * @param object $object
1432
     *
1433
     * @throws ExpectationFailedException
1434
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1435
     * @throws Exception
1436
     *
1437
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1438
     *
1439
     * @see Assert::assertObjectNotHasAttribute
1440
     */
1441
    function assertObjectNotHasAttribute(string $attributeName, $object, string $message = ''): void
1442
    {
1443
        Assert::assertObjectNotHasAttribute(...func_get_args());
1444
    }
1445
}
1446
 
1447
if (!function_exists('PHPUnit\Framework\assertSame')) {
1448
    /**
1449
     * Asserts that two variables have the same type and value.
1450
     * Used on objects, it asserts that two variables reference
1451
     * the same object.
1452
     *
1453
     * @throws ExpectationFailedException
1454
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1455
     *
1456
     * @psalm-template ExpectedType
1457
     *
1458
     * @psalm-param ExpectedType $expected
1459
     *
1460
     * @psalm-assert =ExpectedType $actual
1461
     *
1462
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1463
     *
1464
     * @see Assert::assertSame
1465
     */
1466
    function assertSame($expected, $actual, string $message = ''): void
1467
    {
1468
        Assert::assertSame(...func_get_args());
1469
    }
1470
}
1471
 
1472
if (!function_exists('PHPUnit\Framework\assertNotSame')) {
1473
    /**
1474
     * Asserts that two variables do not have the same type and value.
1475
     * Used on objects, it asserts that two variables do not reference
1476
     * the same object.
1477
     *
1478
     * @throws ExpectationFailedException
1479
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1480
     *
1481
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1482
     *
1483
     * @see Assert::assertNotSame
1484
     */
1485
    function assertNotSame($expected, $actual, string $message = ''): void
1486
    {
1487
        Assert::assertNotSame(...func_get_args());
1488
    }
1489
}
1490
 
1491
if (!function_exists('PHPUnit\Framework\assertInstanceOf')) {
1492
    /**
1493
     * Asserts that a variable is of a given type.
1494
     *
1495
     * @throws ExpectationFailedException
1496
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1497
     * @throws Exception
1498
     *
1499
     * @psalm-template ExpectedType of object
1500
     *
1501
     * @psalm-param class-string<ExpectedType> $expected
1502
     *
1503
     * @psalm-assert =ExpectedType $actual
1504
     *
1505
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1506
     *
1507
     * @see Assert::assertInstanceOf
1508
     */
1509
    function assertInstanceOf(string $expected, $actual, string $message = ''): void
1510
    {
1511
        Assert::assertInstanceOf(...func_get_args());
1512
    }
1513
}
1514
 
1515
if (!function_exists('PHPUnit\Framework\assertNotInstanceOf')) {
1516
    /**
1517
     * Asserts that a variable is not of a given type.
1518
     *
1519
     * @throws ExpectationFailedException
1520
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1521
     * @throws Exception
1522
     *
1523
     * @psalm-template ExpectedType of object
1524
     *
1525
     * @psalm-param class-string<ExpectedType> $expected
1526
     *
1527
     * @psalm-assert !ExpectedType $actual
1528
     *
1529
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1530
     *
1531
     * @see Assert::assertNotInstanceOf
1532
     */
1533
    function assertNotInstanceOf(string $expected, $actual, string $message = ''): void
1534
    {
1535
        Assert::assertNotInstanceOf(...func_get_args());
1536
    }
1537
}
1538
 
1539
if (!function_exists('PHPUnit\Framework\assertIsArray')) {
1540
    /**
1541
     * Asserts that a variable is of type array.
1542
     *
1543
     * @throws ExpectationFailedException
1544
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1545
     *
1546
     * @psalm-assert array $actual
1547
     *
1548
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1549
     *
1550
     * @see Assert::assertIsArray
1551
     */
1552
    function assertIsArray($actual, string $message = ''): void
1553
    {
1554
        Assert::assertIsArray(...func_get_args());
1555
    }
1556
}
1557
 
1558
if (!function_exists('PHPUnit\Framework\assertIsBool')) {
1559
    /**
1560
     * Asserts that a variable is of type bool.
1561
     *
1562
     * @throws ExpectationFailedException
1563
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1564
     *
1565
     * @psalm-assert bool $actual
1566
     *
1567
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1568
     *
1569
     * @see Assert::assertIsBool
1570
     */
1571
    function assertIsBool($actual, string $message = ''): void
1572
    {
1573
        Assert::assertIsBool(...func_get_args());
1574
    }
1575
}
1576
 
1577
if (!function_exists('PHPUnit\Framework\assertIsFloat')) {
1578
    /**
1579
     * Asserts that a variable is of type float.
1580
     *
1581
     * @throws ExpectationFailedException
1582
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1583
     *
1584
     * @psalm-assert float $actual
1585
     *
1586
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1587
     *
1588
     * @see Assert::assertIsFloat
1589
     */
1590
    function assertIsFloat($actual, string $message = ''): void
1591
    {
1592
        Assert::assertIsFloat(...func_get_args());
1593
    }
1594
}
1595
 
1596
if (!function_exists('PHPUnit\Framework\assertIsInt')) {
1597
    /**
1598
     * Asserts that a variable is of type int.
1599
     *
1600
     * @throws ExpectationFailedException
1601
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1602
     *
1603
     * @psalm-assert int $actual
1604
     *
1605
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1606
     *
1607
     * @see Assert::assertIsInt
1608
     */
1609
    function assertIsInt($actual, string $message = ''): void
1610
    {
1611
        Assert::assertIsInt(...func_get_args());
1612
    }
1613
}
1614
 
1615
if (!function_exists('PHPUnit\Framework\assertIsNumeric')) {
1616
    /**
1617
     * Asserts that a variable is of type numeric.
1618
     *
1619
     * @throws ExpectationFailedException
1620
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1621
     *
1622
     * @psalm-assert numeric $actual
1623
     *
1624
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1625
     *
1626
     * @see Assert::assertIsNumeric
1627
     */
1628
    function assertIsNumeric($actual, string $message = ''): void
1629
    {
1630
        Assert::assertIsNumeric(...func_get_args());
1631
    }
1632
}
1633
 
1634
if (!function_exists('PHPUnit\Framework\assertIsObject')) {
1635
    /**
1636
     * Asserts that a variable is of type object.
1637
     *
1638
     * @throws ExpectationFailedException
1639
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1640
     *
1641
     * @psalm-assert object $actual
1642
     *
1643
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1644
     *
1645
     * @see Assert::assertIsObject
1646
     */
1647
    function assertIsObject($actual, string $message = ''): void
1648
    {
1649
        Assert::assertIsObject(...func_get_args());
1650
    }
1651
}
1652
 
1653
if (!function_exists('PHPUnit\Framework\assertIsResource')) {
1654
    /**
1655
     * Asserts that a variable is of type resource.
1656
     *
1657
     * @throws ExpectationFailedException
1658
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1659
     *
1660
     * @psalm-assert resource $actual
1661
     *
1662
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1663
     *
1664
     * @see Assert::assertIsResource
1665
     */
1666
    function assertIsResource($actual, string $message = ''): void
1667
    {
1668
        Assert::assertIsResource(...func_get_args());
1669
    }
1670
}
1671
 
1672
if (!function_exists('PHPUnit\Framework\assertIsClosedResource')) {
1673
    /**
1674
     * Asserts that a variable is of type resource and is closed.
1675
     *
1676
     * @throws ExpectationFailedException
1677
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1678
     *
1679
     * @psalm-assert resource $actual
1680
     *
1681
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1682
     *
1683
     * @see Assert::assertIsClosedResource
1684
     */
1685
    function assertIsClosedResource($actual, string $message = ''): void
1686
    {
1687
        Assert::assertIsClosedResource(...func_get_args());
1688
    }
1689
}
1690
 
1691
if (!function_exists('PHPUnit\Framework\assertIsString')) {
1692
    /**
1693
     * Asserts that a variable is of type string.
1694
     *
1695
     * @throws ExpectationFailedException
1696
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1697
     *
1698
     * @psalm-assert string $actual
1699
     *
1700
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1701
     *
1702
     * @see Assert::assertIsString
1703
     */
1704
    function assertIsString($actual, string $message = ''): void
1705
    {
1706
        Assert::assertIsString(...func_get_args());
1707
    }
1708
}
1709
 
1710
if (!function_exists('PHPUnit\Framework\assertIsScalar')) {
1711
    /**
1712
     * Asserts that a variable is of type scalar.
1713
     *
1714
     * @throws ExpectationFailedException
1715
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1716
     *
1717
     * @psalm-assert scalar $actual
1718
     *
1719
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1720
     *
1721
     * @see Assert::assertIsScalar
1722
     */
1723
    function assertIsScalar($actual, string $message = ''): void
1724
    {
1725
        Assert::assertIsScalar(...func_get_args());
1726
    }
1727
}
1728
 
1729
if (!function_exists('PHPUnit\Framework\assertIsCallable')) {
1730
    /**
1731
     * Asserts that a variable is of type callable.
1732
     *
1733
     * @throws ExpectationFailedException
1734
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1735
     *
1736
     * @psalm-assert callable $actual
1737
     *
1738
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1739
     *
1740
     * @see Assert::assertIsCallable
1741
     */
1742
    function assertIsCallable($actual, string $message = ''): void
1743
    {
1744
        Assert::assertIsCallable(...func_get_args());
1745
    }
1746
}
1747
 
1748
if (!function_exists('PHPUnit\Framework\assertIsIterable')) {
1749
    /**
1750
     * Asserts that a variable is of type iterable.
1751
     *
1752
     * @throws ExpectationFailedException
1753
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1754
     *
1755
     * @psalm-assert iterable $actual
1756
     *
1757
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1758
     *
1759
     * @see Assert::assertIsIterable
1760
     */
1761
    function assertIsIterable($actual, string $message = ''): void
1762
    {
1763
        Assert::assertIsIterable(...func_get_args());
1764
    }
1765
}
1766
 
1767
if (!function_exists('PHPUnit\Framework\assertIsNotArray')) {
1768
    /**
1769
     * Asserts that a variable is not of type array.
1770
     *
1771
     * @throws ExpectationFailedException
1772
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1773
     *
1774
     * @psalm-assert !array $actual
1775
     *
1776
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1777
     *
1778
     * @see Assert::assertIsNotArray
1779
     */
1780
    function assertIsNotArray($actual, string $message = ''): void
1781
    {
1782
        Assert::assertIsNotArray(...func_get_args());
1783
    }
1784
}
1785
 
1786
if (!function_exists('PHPUnit\Framework\assertIsNotBool')) {
1787
    /**
1788
     * Asserts that a variable is not of type bool.
1789
     *
1790
     * @throws ExpectationFailedException
1791
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1792
     *
1793
     * @psalm-assert !bool $actual
1794
     *
1795
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1796
     *
1797
     * @see Assert::assertIsNotBool
1798
     */
1799
    function assertIsNotBool($actual, string $message = ''): void
1800
    {
1801
        Assert::assertIsNotBool(...func_get_args());
1802
    }
1803
}
1804
 
1805
if (!function_exists('PHPUnit\Framework\assertIsNotFloat')) {
1806
    /**
1807
     * Asserts that a variable is not of type float.
1808
     *
1809
     * @throws ExpectationFailedException
1810
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1811
     *
1812
     * @psalm-assert !float $actual
1813
     *
1814
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1815
     *
1816
     * @see Assert::assertIsNotFloat
1817
     */
1818
    function assertIsNotFloat($actual, string $message = ''): void
1819
    {
1820
        Assert::assertIsNotFloat(...func_get_args());
1821
    }
1822
}
1823
 
1824
if (!function_exists('PHPUnit\Framework\assertIsNotInt')) {
1825
    /**
1826
     * Asserts that a variable is not of type int.
1827
     *
1828
     * @throws ExpectationFailedException
1829
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1830
     *
1831
     * @psalm-assert !int $actual
1832
     *
1833
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1834
     *
1835
     * @see Assert::assertIsNotInt
1836
     */
1837
    function assertIsNotInt($actual, string $message = ''): void
1838
    {
1839
        Assert::assertIsNotInt(...func_get_args());
1840
    }
1841
}
1842
 
1843
if (!function_exists('PHPUnit\Framework\assertIsNotNumeric')) {
1844
    /**
1845
     * Asserts that a variable is not of type numeric.
1846
     *
1847
     * @throws ExpectationFailedException
1848
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1849
     *
1850
     * @psalm-assert !numeric $actual
1851
     *
1852
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1853
     *
1854
     * @see Assert::assertIsNotNumeric
1855
     */
1856
    function assertIsNotNumeric($actual, string $message = ''): void
1857
    {
1858
        Assert::assertIsNotNumeric(...func_get_args());
1859
    }
1860
}
1861
 
1862
if (!function_exists('PHPUnit\Framework\assertIsNotObject')) {
1863
    /**
1864
     * Asserts that a variable is not of type object.
1865
     *
1866
     * @throws ExpectationFailedException
1867
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1868
     *
1869
     * @psalm-assert !object $actual
1870
     *
1871
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1872
     *
1873
     * @see Assert::assertIsNotObject
1874
     */
1875
    function assertIsNotObject($actual, string $message = ''): void
1876
    {
1877
        Assert::assertIsNotObject(...func_get_args());
1878
    }
1879
}
1880
 
1881
if (!function_exists('PHPUnit\Framework\assertIsNotResource')) {
1882
    /**
1883
     * Asserts that a variable is not of type resource.
1884
     *
1885
     * @throws ExpectationFailedException
1886
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1887
     *
1888
     * @psalm-assert !resource $actual
1889
     *
1890
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1891
     *
1892
     * @see Assert::assertIsNotResource
1893
     */
1894
    function assertIsNotResource($actual, string $message = ''): void
1895
    {
1896
        Assert::assertIsNotResource(...func_get_args());
1897
    }
1898
}
1899
 
1900
if (!function_exists('PHPUnit\Framework\assertIsNotClosedResource')) {
1901
    /**
1902
     * Asserts that a variable is not of type resource.
1903
     *
1904
     * @throws ExpectationFailedException
1905
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1906
     *
1907
     * @psalm-assert !resource $actual
1908
     *
1909
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1910
     *
1911
     * @see Assert::assertIsNotClosedResource
1912
     */
1913
    function assertIsNotClosedResource($actual, string $message = ''): void
1914
    {
1915
        Assert::assertIsNotClosedResource(...func_get_args());
1916
    }
1917
}
1918
 
1919
if (!function_exists('PHPUnit\Framework\assertIsNotString')) {
1920
    /**
1921
     * Asserts that a variable is not of type string.
1922
     *
1923
     * @throws ExpectationFailedException
1924
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1925
     *
1926
     * @psalm-assert !string $actual
1927
     *
1928
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1929
     *
1930
     * @see Assert::assertIsNotString
1931
     */
1932
    function assertIsNotString($actual, string $message = ''): void
1933
    {
1934
        Assert::assertIsNotString(...func_get_args());
1935
    }
1936
}
1937
 
1938
if (!function_exists('PHPUnit\Framework\assertIsNotScalar')) {
1939
    /**
1940
     * Asserts that a variable is not of type scalar.
1941
     *
1942
     * @throws ExpectationFailedException
1943
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1944
     *
1945
     * @psalm-assert !scalar $actual
1946
     *
1947
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1948
     *
1949
     * @see Assert::assertIsNotScalar
1950
     */
1951
    function assertIsNotScalar($actual, string $message = ''): void
1952
    {
1953
        Assert::assertIsNotScalar(...func_get_args());
1954
    }
1955
}
1956
 
1957
if (!function_exists('PHPUnit\Framework\assertIsNotCallable')) {
1958
    /**
1959
     * Asserts that a variable is not of type callable.
1960
     *
1961
     * @throws ExpectationFailedException
1962
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1963
     *
1964
     * @psalm-assert !callable $actual
1965
     *
1966
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1967
     *
1968
     * @see Assert::assertIsNotCallable
1969
     */
1970
    function assertIsNotCallable($actual, string $message = ''): void
1971
    {
1972
        Assert::assertIsNotCallable(...func_get_args());
1973
    }
1974
}
1975
 
1976
if (!function_exists('PHPUnit\Framework\assertIsNotIterable')) {
1977
    /**
1978
     * Asserts that a variable is not of type iterable.
1979
     *
1980
     * @throws ExpectationFailedException
1981
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
1982
     *
1983
     * @psalm-assert !iterable $actual
1984
     *
1985
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
1986
     *
1987
     * @see Assert::assertIsNotIterable
1988
     */
1989
    function assertIsNotIterable($actual, string $message = ''): void
1990
    {
1991
        Assert::assertIsNotIterable(...func_get_args());
1992
    }
1993
}
1994
 
1995
if (!function_exists('PHPUnit\Framework\assertMatchesRegularExpression')) {
1996
    /**
1997
     * Asserts that a string matches a given regular expression.
1998
     *
1999
     * @throws ExpectationFailedException
2000
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2001
     *
2002
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2003
     *
2004
     * @see Assert::assertMatchesRegularExpression
2005
     */
2006
    function assertMatchesRegularExpression(string $pattern, string $string, string $message = ''): void
2007
    {
2008
        Assert::assertMatchesRegularExpression(...func_get_args());
2009
    }
2010
}
2011
 
2012
if (!function_exists('PHPUnit\Framework\assertRegExp')) {
2013
    /**
2014
     * Asserts that a string matches a given regular expression.
2015
     *
2016
     * @throws ExpectationFailedException
2017
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2018
     *
2019
     * @codeCoverageIgnore
2020
     *
2021
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4086
2022
     *
2023
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2024
     *
2025
     * @see Assert::assertRegExp
2026
     */
2027
    function assertRegExp(string $pattern, string $string, string $message = ''): void
2028
    {
2029
        Assert::assertRegExp(...func_get_args());
2030
    }
2031
}
2032
 
2033
if (!function_exists('PHPUnit\Framework\assertDoesNotMatchRegularExpression')) {
2034
    /**
2035
     * Asserts that a string does not match a given regular expression.
2036
     *
2037
     * @throws ExpectationFailedException
2038
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2039
     *
2040
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2041
     *
2042
     * @see Assert::assertDoesNotMatchRegularExpression
2043
     */
2044
    function assertDoesNotMatchRegularExpression(string $pattern, string $string, string $message = ''): void
2045
    {
2046
        Assert::assertDoesNotMatchRegularExpression(...func_get_args());
2047
    }
2048
}
2049
 
2050
if (!function_exists('PHPUnit\Framework\assertNotRegExp')) {
2051
    /**
2052
     * Asserts that a string does not match a given regular expression.
2053
     *
2054
     * @throws ExpectationFailedException
2055
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2056
     *
2057
     * @codeCoverageIgnore
2058
     *
2059
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4089
2060
     *
2061
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2062
     *
2063
     * @see Assert::assertNotRegExp
2064
     */
2065
    function assertNotRegExp(string $pattern, string $string, string $message = ''): void
2066
    {
2067
        Assert::assertNotRegExp(...func_get_args());
2068
    }
2069
}
2070
 
2071
if (!function_exists('PHPUnit\Framework\assertSameSize')) {
2072
    /**
2073
     * Assert that the size of two arrays (or `Countable` or `Traversable` objects)
2074
     * is the same.
2075
     *
2076
     * @param Countable|iterable $expected
2077
     * @param Countable|iterable $actual
2078
     *
2079
     * @throws ExpectationFailedException
2080
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2081
     * @throws Exception
2082
     *
2083
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2084
     *
2085
     * @see Assert::assertSameSize
2086
     */
2087
    function assertSameSize($expected, $actual, string $message = ''): void
2088
    {
2089
        Assert::assertSameSize(...func_get_args());
2090
    }
2091
}
2092
 
2093
if (!function_exists('PHPUnit\Framework\assertNotSameSize')) {
2094
    /**
2095
     * Assert that the size of two arrays (or `Countable` or `Traversable` objects)
2096
     * is not the same.
2097
     *
2098
     * @param Countable|iterable $expected
2099
     * @param Countable|iterable $actual
2100
     *
2101
     * @throws ExpectationFailedException
2102
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2103
     * @throws Exception
2104
     *
2105
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2106
     *
2107
     * @see Assert::assertNotSameSize
2108
     */
2109
    function assertNotSameSize($expected, $actual, string $message = ''): void
2110
    {
2111
        Assert::assertNotSameSize(...func_get_args());
2112
    }
2113
}
2114
 
2115
if (!function_exists('PHPUnit\Framework\assertStringMatchesFormat')) {
2116
    /**
2117
     * Asserts that a string matches a given format string.
2118
     *
2119
     * @throws ExpectationFailedException
2120
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2121
     *
2122
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2123
     *
2124
     * @see Assert::assertStringMatchesFormat
2125
     */
2126
    function assertStringMatchesFormat(string $format, string $string, string $message = ''): void
2127
    {
2128
        Assert::assertStringMatchesFormat(...func_get_args());
2129
    }
2130
}
2131
 
2132
if (!function_exists('PHPUnit\Framework\assertStringNotMatchesFormat')) {
2133
    /**
2134
     * Asserts that a string does not match a given format string.
2135
     *
2136
     * @throws ExpectationFailedException
2137
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2138
     *
2139
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2140
     *
2141
     * @see Assert::assertStringNotMatchesFormat
2142
     */
2143
    function assertStringNotMatchesFormat(string $format, string $string, string $message = ''): void
2144
    {
2145
        Assert::assertStringNotMatchesFormat(...func_get_args());
2146
    }
2147
}
2148
 
2149
if (!function_exists('PHPUnit\Framework\assertStringMatchesFormatFile')) {
2150
    /**
2151
     * Asserts that a string matches a given format file.
2152
     *
2153
     * @throws ExpectationFailedException
2154
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2155
     *
2156
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2157
     *
2158
     * @see Assert::assertStringMatchesFormatFile
2159
     */
2160
    function assertStringMatchesFormatFile(string $formatFile, string $string, string $message = ''): void
2161
    {
2162
        Assert::assertStringMatchesFormatFile(...func_get_args());
2163
    }
2164
}
2165
 
2166
if (!function_exists('PHPUnit\Framework\assertStringNotMatchesFormatFile')) {
2167
    /**
2168
     * Asserts that a string does not match a given format string.
2169
     *
2170
     * @throws ExpectationFailedException
2171
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2172
     *
2173
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2174
     *
2175
     * @see Assert::assertStringNotMatchesFormatFile
2176
     */
2177
    function assertStringNotMatchesFormatFile(string $formatFile, string $string, string $message = ''): void
2178
    {
2179
        Assert::assertStringNotMatchesFormatFile(...func_get_args());
2180
    }
2181
}
2182
 
2183
if (!function_exists('PHPUnit\Framework\assertStringStartsWith')) {
2184
    /**
2185
     * Asserts that a string starts with a given prefix.
2186
     *
2187
     * @throws ExpectationFailedException
2188
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2189
     *
2190
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2191
     *
2192
     * @see Assert::assertStringStartsWith
2193
     */
2194
    function assertStringStartsWith(string $prefix, string $string, string $message = ''): void
2195
    {
2196
        Assert::assertStringStartsWith(...func_get_args());
2197
    }
2198
}
2199
 
2200
if (!function_exists('PHPUnit\Framework\assertStringStartsNotWith')) {
2201
    /**
2202
     * Asserts that a string starts not with a given prefix.
2203
     *
2204
     * @param string $prefix
2205
     * @param string $string
2206
     *
2207
     * @throws ExpectationFailedException
2208
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2209
     *
2210
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2211
     *
2212
     * @see Assert::assertStringStartsNotWith
2213
     */
2214
    function assertStringStartsNotWith($prefix, $string, string $message = ''): void
2215
    {
2216
        Assert::assertStringStartsNotWith(...func_get_args());
2217
    }
2218
}
2219
 
2220
if (!function_exists('PHPUnit\Framework\assertStringContainsString')) {
2221
    /**
2222
     * @throws ExpectationFailedException
2223
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2224
     *
2225
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2226
     *
2227
     * @see Assert::assertStringContainsString
2228
     */
2229
    function assertStringContainsString(string $needle, string $haystack, string $message = ''): void
2230
    {
2231
        Assert::assertStringContainsString(...func_get_args());
2232
    }
2233
}
2234
 
2235
if (!function_exists('PHPUnit\Framework\assertStringContainsStringIgnoringCase')) {
2236
    /**
2237
     * @throws ExpectationFailedException
2238
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2239
     *
2240
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2241
     *
2242
     * @see Assert::assertStringContainsStringIgnoringCase
2243
     */
2244
    function assertStringContainsStringIgnoringCase(string $needle, string $haystack, string $message = ''): void
2245
    {
2246
        Assert::assertStringContainsStringIgnoringCase(...func_get_args());
2247
    }
2248
}
2249
 
2250
if (!function_exists('PHPUnit\Framework\assertStringNotContainsString')) {
2251
    /**
2252
     * @throws ExpectationFailedException
2253
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2254
     *
2255
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2256
     *
2257
     * @see Assert::assertStringNotContainsString
2258
     */
2259
    function assertStringNotContainsString(string $needle, string $haystack, string $message = ''): void
2260
    {
2261
        Assert::assertStringNotContainsString(...func_get_args());
2262
    }
2263
}
2264
 
2265
if (!function_exists('PHPUnit\Framework\assertStringNotContainsStringIgnoringCase')) {
2266
    /**
2267
     * @throws ExpectationFailedException
2268
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2269
     *
2270
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2271
     *
2272
     * @see Assert::assertStringNotContainsStringIgnoringCase
2273
     */
2274
    function assertStringNotContainsStringIgnoringCase(string $needle, string $haystack, string $message = ''): void
2275
    {
2276
        Assert::assertStringNotContainsStringIgnoringCase(...func_get_args());
2277
    }
2278
}
2279
 
2280
if (!function_exists('PHPUnit\Framework\assertStringEndsWith')) {
2281
    /**
2282
     * Asserts that a string ends with a given suffix.
2283
     *
2284
     * @throws ExpectationFailedException
2285
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2286
     *
2287
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2288
     *
2289
     * @see Assert::assertStringEndsWith
2290
     */
2291
    function assertStringEndsWith(string $suffix, string $string, string $message = ''): void
2292
    {
2293
        Assert::assertStringEndsWith(...func_get_args());
2294
    }
2295
}
2296
 
2297
if (!function_exists('PHPUnit\Framework\assertStringEndsNotWith')) {
2298
    /**
2299
     * Asserts that a string ends not with a given suffix.
2300
     *
2301
     * @throws ExpectationFailedException
2302
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2303
     *
2304
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2305
     *
2306
     * @see Assert::assertStringEndsNotWith
2307
     */
2308
    function assertStringEndsNotWith(string $suffix, string $string, string $message = ''): void
2309
    {
2310
        Assert::assertStringEndsNotWith(...func_get_args());
2311
    }
2312
}
2313
 
2314
if (!function_exists('PHPUnit\Framework\assertXmlFileEqualsXmlFile')) {
2315
    /**
2316
     * Asserts that two XML files are equal.
2317
     *
2318
     * @throws ExpectationFailedException
2319
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2320
     * @throws Exception
2321
     *
2322
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2323
     *
2324
     * @see Assert::assertXmlFileEqualsXmlFile
2325
     */
2326
    function assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile, string $message = ''): void
2327
    {
2328
        Assert::assertXmlFileEqualsXmlFile(...func_get_args());
2329
    }
2330
}
2331
 
2332
if (!function_exists('PHPUnit\Framework\assertXmlFileNotEqualsXmlFile')) {
2333
    /**
2334
     * Asserts that two XML files are not equal.
2335
     *
2336
     * @throws ExpectationFailedException
2337
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2338
     * @throws \PHPUnit\Util\Exception
2339
     *
2340
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2341
     *
2342
     * @see Assert::assertXmlFileNotEqualsXmlFile
2343
     */
2344
    function assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile, string $message = ''): void
2345
    {
2346
        Assert::assertXmlFileNotEqualsXmlFile(...func_get_args());
2347
    }
2348
}
2349
 
2350
if (!function_exists('PHPUnit\Framework\assertXmlStringEqualsXmlFile')) {
2351
    /**
2352
     * Asserts that two XML documents are equal.
2353
     *
2354
     * @param DOMDocument|string $actualXml
2355
     *
2356
     * @throws ExpectationFailedException
2357
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2358
     * @throws \PHPUnit\Util\Xml\Exception
2359
     *
2360
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2361
     *
2362
     * @see Assert::assertXmlStringEqualsXmlFile
2363
     */
2364
    function assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml, string $message = ''): void
2365
    {
2366
        Assert::assertXmlStringEqualsXmlFile(...func_get_args());
2367
    }
2368
}
2369
 
2370
if (!function_exists('PHPUnit\Framework\assertXmlStringNotEqualsXmlFile')) {
2371
    /**
2372
     * Asserts that two XML documents are not equal.
2373
     *
2374
     * @param DOMDocument|string $actualXml
2375
     *
2376
     * @throws ExpectationFailedException
2377
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2378
     * @throws \PHPUnit\Util\Xml\Exception
2379
     *
2380
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2381
     *
2382
     * @see Assert::assertXmlStringNotEqualsXmlFile
2383
     */
2384
    function assertXmlStringNotEqualsXmlFile(string $expectedFile, $actualXml, string $message = ''): void
2385
    {
2386
        Assert::assertXmlStringNotEqualsXmlFile(...func_get_args());
2387
    }
2388
}
2389
 
2390
if (!function_exists('PHPUnit\Framework\assertXmlStringEqualsXmlString')) {
2391
    /**
2392
     * Asserts that two XML documents are equal.
2393
     *
2394
     * @param DOMDocument|string $expectedXml
2395
     * @param DOMDocument|string $actualXml
2396
     *
2397
     * @throws ExpectationFailedException
2398
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2399
     * @throws \PHPUnit\Util\Xml\Exception
2400
     *
2401
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2402
     *
2403
     * @see Assert::assertXmlStringEqualsXmlString
2404
     */
2405
    function assertXmlStringEqualsXmlString($expectedXml, $actualXml, string $message = ''): void
2406
    {
2407
        Assert::assertXmlStringEqualsXmlString(...func_get_args());
2408
    }
2409
}
2410
 
2411
if (!function_exists('PHPUnit\Framework\assertXmlStringNotEqualsXmlString')) {
2412
    /**
2413
     * Asserts that two XML documents are not equal.
2414
     *
2415
     * @param DOMDocument|string $expectedXml
2416
     * @param DOMDocument|string $actualXml
2417
     *
2418
     * @throws ExpectationFailedException
2419
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2420
     * @throws \PHPUnit\Util\Xml\Exception
2421
     *
2422
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2423
     *
2424
     * @see Assert::assertXmlStringNotEqualsXmlString
2425
     */
2426
    function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, string $message = ''): void
2427
    {
2428
        Assert::assertXmlStringNotEqualsXmlString(...func_get_args());
2429
    }
2430
}
2431
 
2432
if (!function_exists('PHPUnit\Framework\assertEqualXMLStructure')) {
2433
    /**
2434
     * Asserts that a hierarchy of DOMElements matches.
2435
     *
2436
     * @throws AssertionFailedError
2437
     * @throws ExpectationFailedException
2438
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2439
     *
2440
     * @codeCoverageIgnore
2441
     *
2442
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/4091
2443
     *
2444
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2445
     *
2446
     * @see Assert::assertEqualXMLStructure
2447
     */
2448
    function assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actualElement, bool $checkAttributes = false, string $message = ''): void
2449
    {
2450
        Assert::assertEqualXMLStructure(...func_get_args());
2451
    }
2452
}
2453
 
2454
if (!function_exists('PHPUnit\Framework\assertThat')) {
2455
    /**
2456
     * Evaluates a PHPUnit\Framework\Constraint matcher object.
2457
     *
2458
     * @throws ExpectationFailedException
2459
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2460
     *
2461
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2462
     *
2463
     * @see Assert::assertThat
2464
     */
2465
    function assertThat($value, Constraint $constraint, string $message = ''): void
2466
    {
2467
        Assert::assertThat(...func_get_args());
2468
    }
2469
}
2470
 
2471
if (!function_exists('PHPUnit\Framework\assertJson')) {
2472
    /**
2473
     * Asserts that a string is a valid JSON string.
2474
     *
2475
     * @throws ExpectationFailedException
2476
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2477
     *
2478
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2479
     *
2480
     * @see Assert::assertJson
2481
     */
2482
    function assertJson(string $actualJson, string $message = ''): void
2483
    {
2484
        Assert::assertJson(...func_get_args());
2485
    }
2486
}
2487
 
2488
if (!function_exists('PHPUnit\Framework\assertJsonStringEqualsJsonString')) {
2489
    /**
2490
     * Asserts that two given JSON encoded objects or arrays are equal.
2491
     *
2492
     * @throws ExpectationFailedException
2493
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2494
     *
2495
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2496
     *
2497
     * @see Assert::assertJsonStringEqualsJsonString
2498
     */
2499
    function assertJsonStringEqualsJsonString(string $expectedJson, string $actualJson, string $message = ''): void
2500
    {
2501
        Assert::assertJsonStringEqualsJsonString(...func_get_args());
2502
    }
2503
}
2504
 
2505
if (!function_exists('PHPUnit\Framework\assertJsonStringNotEqualsJsonString')) {
2506
    /**
2507
     * Asserts that two given JSON encoded objects or arrays are not equal.
2508
     *
2509
     * @param string $expectedJson
2510
     * @param string $actualJson
2511
     *
2512
     * @throws ExpectationFailedException
2513
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2514
     *
2515
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2516
     *
2517
     * @see Assert::assertJsonStringNotEqualsJsonString
2518
     */
2519
    function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, string $message = ''): void
2520
    {
2521
        Assert::assertJsonStringNotEqualsJsonString(...func_get_args());
2522
    }
2523
}
2524
 
2525
if (!function_exists('PHPUnit\Framework\assertJsonStringEqualsJsonFile')) {
2526
    /**
2527
     * Asserts that the generated JSON encoded object and the content of the given file are equal.
2528
     *
2529
     * @throws ExpectationFailedException
2530
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2531
     *
2532
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2533
     *
2534
     * @see Assert::assertJsonStringEqualsJsonFile
2535
     */
2536
    function assertJsonStringEqualsJsonFile(string $expectedFile, string $actualJson, string $message = ''): void
2537
    {
2538
        Assert::assertJsonStringEqualsJsonFile(...func_get_args());
2539
    }
2540
}
2541
 
2542
if (!function_exists('PHPUnit\Framework\assertJsonStringNotEqualsJsonFile')) {
2543
    /**
2544
     * Asserts that the generated JSON encoded object and the content of the given file are not equal.
2545
     *
2546
     * @throws ExpectationFailedException
2547
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2548
     *
2549
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2550
     *
2551
     * @see Assert::assertJsonStringNotEqualsJsonFile
2552
     */
2553
    function assertJsonStringNotEqualsJsonFile(string $expectedFile, string $actualJson, string $message = ''): void
2554
    {
2555
        Assert::assertJsonStringNotEqualsJsonFile(...func_get_args());
2556
    }
2557
}
2558
 
2559
if (!function_exists('PHPUnit\Framework\assertJsonFileEqualsJsonFile')) {
2560
    /**
2561
     * Asserts that two JSON files are equal.
2562
     *
2563
     * @throws ExpectationFailedException
2564
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2565
     *
2566
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2567
     *
2568
     * @see Assert::assertJsonFileEqualsJsonFile
2569
     */
2570
    function assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile, string $message = ''): void
2571
    {
2572
        Assert::assertJsonFileEqualsJsonFile(...func_get_args());
2573
    }
2574
}
2575
 
2576
if (!function_exists('PHPUnit\Framework\assertJsonFileNotEqualsJsonFile')) {
2577
    /**
2578
     * Asserts that two JSON files are not equal.
2579
     *
2580
     * @throws ExpectationFailedException
2581
     * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
2582
     *
2583
     * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
2584
     *
2585
     * @see Assert::assertJsonFileNotEqualsJsonFile
2586
     */
2587
    function assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFile, string $message = ''): void
2588
    {
2589
        Assert::assertJsonFileNotEqualsJsonFile(...func_get_args());
2590
    }
2591
}
2592
 
2593
if (!function_exists('PHPUnit\Framework\logicalAnd')) {
2594
    function logicalAnd(): LogicalAnd
2595
    {
2596
        return Assert::logicalAnd(...func_get_args());
2597
    }
2598
}
2599
 
2600
if (!function_exists('PHPUnit\Framework\logicalOr')) {
2601
    function logicalOr(): LogicalOr
2602
    {
2603
        return Assert::logicalOr(...func_get_args());
2604
    }
2605
}
2606
 
2607
if (!function_exists('PHPUnit\Framework\logicalNot')) {
2608
    function logicalNot(Constraint $constraint): LogicalNot
2609
    {
2610
        return Assert::logicalNot(...func_get_args());
2611
    }
2612
}
2613
 
2614
if (!function_exists('PHPUnit\Framework\logicalXor')) {
2615
    function logicalXor(): LogicalXor
2616
    {
2617
        return Assert::logicalXor(...func_get_args());
2618
    }
2619
}
2620
 
2621
if (!function_exists('PHPUnit\Framework\anything')) {
2622
    function anything(): IsAnything
2623
    {
2624
        return Assert::anything(...func_get_args());
2625
    }
2626
}
2627
 
2628
if (!function_exists('PHPUnit\Framework\isTrue')) {
2629
    function isTrue(): IsTrue
2630
    {
2631
        return Assert::isTrue(...func_get_args());
2632
    }
2633
}
2634
 
2635
if (!function_exists('PHPUnit\Framework\callback')) {
2636
    function callback(callable $callback): Callback
2637
    {
2638
        return Assert::callback(...func_get_args());
2639
    }
2640
}
2641
 
2642
if (!function_exists('PHPUnit\Framework\isFalse')) {
2643
    function isFalse(): IsFalse
2644
    {
2645
        return Assert::isFalse(...func_get_args());
2646
    }
2647
}
2648
 
2649
if (!function_exists('PHPUnit\Framework\isJson')) {
2650
    function isJson(): IsJson
2651
    {
2652
        return Assert::isJson(...func_get_args());
2653
    }
2654
}
2655
 
2656
if (!function_exists('PHPUnit\Framework\isNull')) {
2657
    function isNull(): IsNull
2658
    {
2659
        return Assert::isNull(...func_get_args());
2660
    }
2661
}
2662
 
2663
if (!function_exists('PHPUnit\Framework\isFinite')) {
2664
    function isFinite(): IsFinite
2665
    {
2666
        return Assert::isFinite(...func_get_args());
2667
    }
2668
}
2669
 
2670
if (!function_exists('PHPUnit\Framework\isInfinite')) {
2671
    function isInfinite(): IsInfinite
2672
    {
2673
        return Assert::isInfinite(...func_get_args());
2674
    }
2675
}
2676
 
2677
if (!function_exists('PHPUnit\Framework\isNan')) {
2678
    function isNan(): IsNan
2679
    {
2680
        return Assert::isNan(...func_get_args());
2681
    }
2682
}
2683
 
2684
if (!function_exists('PHPUnit\Framework\containsEqual')) {
2685
    function containsEqual($value): TraversableContainsEqual
2686
    {
2687
        return Assert::containsEqual(...func_get_args());
2688
    }
2689
}
2690
 
2691
if (!function_exists('PHPUnit\Framework\containsIdentical')) {
2692
    function containsIdentical($value): TraversableContainsIdentical
2693
    {
2694
        return Assert::containsIdentical(...func_get_args());
2695
    }
2696
}
2697
 
2698
if (!function_exists('PHPUnit\Framework\containsOnly')) {
2699
    function containsOnly(string $type): TraversableContainsOnly
2700
    {
2701
        return Assert::containsOnly(...func_get_args());
2702
    }
2703
}
2704
 
2705
if (!function_exists('PHPUnit\Framework\containsOnlyInstancesOf')) {
2706
    function containsOnlyInstancesOf(string $className): TraversableContainsOnly
2707
    {
2708
        return Assert::containsOnlyInstancesOf(...func_get_args());
2709
    }
2710
}
2711
 
2712
if (!function_exists('PHPUnit\Framework\arrayHasKey')) {
2713
    function arrayHasKey($key): ArrayHasKey
2714
    {
2715
        return Assert::arrayHasKey(...func_get_args());
2716
    }
2717
}
2718
 
2719
if (!function_exists('PHPUnit\Framework\equalTo')) {
2720
    function equalTo($value): IsEqual
2721
    {
2722
        return Assert::equalTo(...func_get_args());
2723
    }
2724
}
2725
 
2726
if (!function_exists('PHPUnit\Framework\equalToCanonicalizing')) {
2727
    function equalToCanonicalizing($value): IsEqualCanonicalizing
2728
    {
2729
        return Assert::equalToCanonicalizing(...func_get_args());
2730
    }
2731
}
2732
 
2733
if (!function_exists('PHPUnit\Framework\equalToIgnoringCase')) {
2734
    function equalToIgnoringCase($value): IsEqualIgnoringCase
2735
    {
2736
        return Assert::equalToIgnoringCase(...func_get_args());
2737
    }
2738
}
2739
 
2740
if (!function_exists('PHPUnit\Framework\equalToWithDelta')) {
2741
    function equalToWithDelta($value, float $delta): IsEqualWithDelta
2742
    {
2743
        return Assert::equalToWithDelta(...func_get_args());
2744
    }
2745
}
2746
 
2747
if (!function_exists('PHPUnit\Framework\isEmpty')) {
2748
    function isEmpty(): IsEmpty
2749
    {
2750
        return Assert::isEmpty(...func_get_args());
2751
    }
2752
}
2753
 
2754
if (!function_exists('PHPUnit\Framework\isWritable')) {
2755
    function isWritable(): IsWritable
2756
    {
2757
        return Assert::isWritable(...func_get_args());
2758
    }
2759
}
2760
 
2761
if (!function_exists('PHPUnit\Framework\isReadable')) {
2762
    function isReadable(): IsReadable
2763
    {
2764
        return Assert::isReadable(...func_get_args());
2765
    }
2766
}
2767
 
2768
if (!function_exists('PHPUnit\Framework\directoryExists')) {
2769
    function directoryExists(): DirectoryExists
2770
    {
2771
        return Assert::directoryExists(...func_get_args());
2772
    }
2773
}
2774
 
2775
if (!function_exists('PHPUnit\Framework\fileExists')) {
2776
    function fileExists(): FileExists
2777
    {
2778
        return Assert::fileExists(...func_get_args());
2779
    }
2780
}
2781
 
2782
if (!function_exists('PHPUnit\Framework\greaterThan')) {
2783
    function greaterThan($value): GreaterThan
2784
    {
2785
        return Assert::greaterThan(...func_get_args());
2786
    }
2787
}
2788
 
2789
if (!function_exists('PHPUnit\Framework\greaterThanOrEqual')) {
2790
    function greaterThanOrEqual($value): LogicalOr
2791
    {
2792
        return Assert::greaterThanOrEqual(...func_get_args());
2793
    }
2794
}
2795
 
2796
if (!function_exists('PHPUnit\Framework\classHasAttribute')) {
2797
    function classHasAttribute(string $attributeName): ClassHasAttribute
2798
    {
2799
        return Assert::classHasAttribute(...func_get_args());
2800
    }
2801
}
2802
 
2803
if (!function_exists('PHPUnit\Framework\classHasStaticAttribute')) {
2804
    function classHasStaticAttribute(string $attributeName): ClassHasStaticAttribute
2805
    {
2806
        return Assert::classHasStaticAttribute(...func_get_args());
2807
    }
2808
}
2809
 
2810
if (!function_exists('PHPUnit\Framework\objectHasAttribute')) {
2811
    function objectHasAttribute($attributeName): ObjectHasAttribute
2812
    {
2813
        return Assert::objectHasAttribute(...func_get_args());
2814
    }
2815
}
2816
 
2817
if (!function_exists('PHPUnit\Framework\identicalTo')) {
2818
    function identicalTo($value): IsIdentical
2819
    {
2820
        return Assert::identicalTo(...func_get_args());
2821
    }
2822
}
2823
 
2824
if (!function_exists('PHPUnit\Framework\isInstanceOf')) {
2825
    function isInstanceOf(string $className): IsInstanceOf
2826
    {
2827
        return Assert::isInstanceOf(...func_get_args());
2828
    }
2829
}
2830
 
2831
if (!function_exists('PHPUnit\Framework\isType')) {
2832
    function isType(string $type): IsType
2833
    {
2834
        return Assert::isType(...func_get_args());
2835
    }
2836
}
2837
 
2838
if (!function_exists('PHPUnit\Framework\lessThan')) {
2839
    function lessThan($value): LessThan
2840
    {
2841
        return Assert::lessThan(...func_get_args());
2842
    }
2843
}
2844
 
2845
if (!function_exists('PHPUnit\Framework\lessThanOrEqual')) {
2846
    function lessThanOrEqual($value): LogicalOr
2847
    {
2848
        return Assert::lessThanOrEqual(...func_get_args());
2849
    }
2850
}
2851
 
2852
if (!function_exists('PHPUnit\Framework\matchesRegularExpression')) {
2853
    function matchesRegularExpression(string $pattern): RegularExpression
2854
    {
2855
        return Assert::matchesRegularExpression(...func_get_args());
2856
    }
2857
}
2858
 
2859
if (!function_exists('PHPUnit\Framework\matches')) {
2860
    function matches(string $string): StringMatchesFormatDescription
2861
    {
2862
        return Assert::matches(...func_get_args());
2863
    }
2864
}
2865
 
2866
if (!function_exists('PHPUnit\Framework\stringStartsWith')) {
2867
    function stringStartsWith($prefix): StringStartsWith
2868
    {
2869
        return Assert::stringStartsWith(...func_get_args());
2870
    }
2871
}
2872
 
2873
if (!function_exists('PHPUnit\Framework\stringContains')) {
2874
    function stringContains(string $string, bool $case = true): StringContains
2875
    {
2876
        return Assert::stringContains(...func_get_args());
2877
    }
2878
}
2879
 
2880
if (!function_exists('PHPUnit\Framework\stringEndsWith')) {
2881
    function stringEndsWith(string $suffix): StringEndsWith
2882
    {
2883
        return Assert::stringEndsWith(...func_get_args());
2884
    }
2885
}
2886
 
2887
if (!function_exists('PHPUnit\Framework\countOf')) {
2888
    function countOf(int $count): Count
2889
    {
2890
        return Assert::countOf(...func_get_args());
2891
    }
2892
}
2893
 
2894
if (!function_exists('PHPUnit\Framework\objectEquals')) {
2895
    function objectEquals(object $object, string $method = 'equals'): ObjectEquals
2896
    {
2897
        return Assert::objectEquals(...func_get_args());
2898
    }
2899
}
2900
 
2901
if (!function_exists('PHPUnit\Framework\any')) {
2902
    /**
2903
     * Returns a matcher that matches when the method is executed
2904
     * zero or more times.
2905
     */
2906
    function any(): AnyInvokedCountMatcher
2907
    {
2908
        return new AnyInvokedCountMatcher;
2909
    }
2910
}
2911
 
2912
if (!function_exists('PHPUnit\Framework\never')) {
2913
    /**
2914
     * Returns a matcher that matches when the method is never executed.
2915
     */
2916
    function never(): InvokedCountMatcher
2917
    {
2918
        return new InvokedCountMatcher(0);
2919
    }
2920
}
2921
 
2922
if (!function_exists('PHPUnit\Framework\atLeast')) {
2923
    /**
2924
     * Returns a matcher that matches when the method is executed
2925
     * at least N times.
2926
     */
2927
    function atLeast(int $requiredInvocations): InvokedAtLeastCountMatcher
2928
    {
2929
        return new InvokedAtLeastCountMatcher(
2930
            $requiredInvocations
2931
        );
2932
    }
2933
}
2934
 
2935
if (!function_exists('PHPUnit\Framework\atLeastOnce')) {
2936
    /**
2937
     * Returns a matcher that matches when the method is executed at least once.
2938
     */
2939
    function atLeastOnce(): InvokedAtLeastOnceMatcher
2940
    {
2941
        return new InvokedAtLeastOnceMatcher;
2942
    }
2943
}
2944
 
2945
if (!function_exists('PHPUnit\Framework\once')) {
2946
    /**
2947
     * Returns a matcher that matches when the method is executed exactly once.
2948
     */
2949
    function once(): InvokedCountMatcher
2950
    {
2951
        return new InvokedCountMatcher(1);
2952
    }
2953
}
2954
 
2955
if (!function_exists('PHPUnit\Framework\exactly')) {
2956
    /**
2957
     * Returns a matcher that matches when the method is executed
2958
     * exactly $count times.
2959
     */
2960
    function exactly(int $count): InvokedCountMatcher
2961
    {
2962
        return new InvokedCountMatcher($count);
2963
    }
2964
}
2965
 
2966
if (!function_exists('PHPUnit\Framework\atMost')) {
2967
    /**
2968
     * Returns a matcher that matches when the method is executed
2969
     * at most N times.
2970
     */
2971
    function atMost(int $allowedInvocations): InvokedAtMostCountMatcher
2972
    {
2973
        return new InvokedAtMostCountMatcher($allowedInvocations);
2974
    }
2975
}
2976
 
2977
if (!function_exists('PHPUnit\Framework\at')) {
2978
    /**
2979
     * Returns a matcher that matches when the method is executed
2980
     * at the given index.
2981
     */
2982
    function at(int $index): InvokedAtIndexMatcher
2983
    {
2984
        return new InvokedAtIndexMatcher($index);
2985
    }
2986
}
2987
 
2988
if (!function_exists('PHPUnit\Framework\returnValue')) {
2989
    function returnValue($value): ReturnStub
2990
    {
2991
        return new ReturnStub($value);
2992
    }
2993
}
2994
 
2995
if (!function_exists('PHPUnit\Framework\returnValueMap')) {
2996
    function returnValueMap(array $valueMap): ReturnValueMapStub
2997
    {
2998
        return new ReturnValueMapStub($valueMap);
2999
    }
3000
}
3001
 
3002
if (!function_exists('PHPUnit\Framework\returnArgument')) {
3003
    function returnArgument(int $argumentIndex): ReturnArgumentStub
3004
    {
3005
        return new ReturnArgumentStub($argumentIndex);
3006
    }
3007
}
3008
 
3009
if (!function_exists('PHPUnit\Framework\returnCallback')) {
3010
    function returnCallback($callback): ReturnCallbackStub
3011
    {
3012
        return new ReturnCallbackStub($callback);
3013
    }
3014
}
3015
 
3016
if (!function_exists('PHPUnit\Framework\returnSelf')) {
3017
    /**
3018
     * Returns the current object.
3019
     *
3020
     * This method is useful when mocking a fluent interface.
3021
     */
3022
    function returnSelf(): ReturnSelfStub
3023
    {
3024
        return new ReturnSelfStub;
3025
    }
3026
}
3027
 
3028
if (!function_exists('PHPUnit\Framework\throwException')) {
3029
    function throwException(Throwable $exception): ExceptionStub
3030
    {
3031
        return new ExceptionStub($exception);
3032
    }
3033
}
3034
 
3035
if (!function_exists('PHPUnit\Framework\onConsecutiveCalls')) {
3036
    function onConsecutiveCalls(): ConsecutiveCallsStub
3037
    {
3038
        $args = func_get_args();
3039
 
3040
        return new ConsecutiveCallsStub($args);
3041
    }
3042
}