Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7426385
Functions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
95 KB
Referenced Files
None
Subscribers
None
Functions.php
View Options
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
PHPUnit\Framework
;
use
function
func_get_args
;
use
function
function_exists
;
use
ArrayAccess
;
use
Countable
;
use
DOMDocument
;
use
DOMElement
;
use
PHPUnit\Framework\Constraint\ArrayHasKey
;
use
PHPUnit\Framework\Constraint\Callback
;
use
PHPUnit\Framework\Constraint\ClassHasAttribute
;
use
PHPUnit\Framework\Constraint\ClassHasStaticAttribute
;
use
PHPUnit\Framework\Constraint\Constraint
;
use
PHPUnit\Framework\Constraint\Count
;
use
PHPUnit\Framework\Constraint\DirectoryExists
;
use
PHPUnit\Framework\Constraint\FileExists
;
use
PHPUnit\Framework\Constraint\GreaterThan
;
use
PHPUnit\Framework\Constraint\IsAnything
;
use
PHPUnit\Framework\Constraint\IsEmpty
;
use
PHPUnit\Framework\Constraint\IsEqual
;
use
PHPUnit\Framework\Constraint\IsEqualCanonicalizing
;
use
PHPUnit\Framework\Constraint\IsEqualIgnoringCase
;
use
PHPUnit\Framework\Constraint\IsEqualWithDelta
;
use
PHPUnit\Framework\Constraint\IsFalse
;
use
PHPUnit\Framework\Constraint\IsFinite
;
use
PHPUnit\Framework\Constraint\IsIdentical
;
use
PHPUnit\Framework\Constraint\IsInfinite
;
use
PHPUnit\Framework\Constraint\IsInstanceOf
;
use
PHPUnit\Framework\Constraint\IsJson
;
use
PHPUnit\Framework\Constraint\IsNan
;
use
PHPUnit\Framework\Constraint\IsNull
;
use
PHPUnit\Framework\Constraint\IsReadable
;
use
PHPUnit\Framework\Constraint\IsTrue
;
use
PHPUnit\Framework\Constraint\IsType
;
use
PHPUnit\Framework\Constraint\IsWritable
;
use
PHPUnit\Framework\Constraint\LessThan
;
use
PHPUnit\Framework\Constraint\LogicalAnd
;
use
PHPUnit\Framework\Constraint\LogicalNot
;
use
PHPUnit\Framework\Constraint\LogicalOr
;
use
PHPUnit\Framework\Constraint\LogicalXor
;
use
PHPUnit\Framework\Constraint\ObjectEquals
;
use
PHPUnit\Framework\Constraint\ObjectHasAttribute
;
use
PHPUnit\Framework\Constraint\RegularExpression
;
use
PHPUnit\Framework\Constraint\StringContains
;
use
PHPUnit\Framework\Constraint\StringEndsWith
;
use
PHPUnit\Framework\Constraint\StringMatchesFormatDescription
;
use
PHPUnit\Framework\Constraint\StringStartsWith
;
use
PHPUnit\Framework\Constraint\TraversableContainsEqual
;
use
PHPUnit\Framework\Constraint\TraversableContainsIdentical
;
use
PHPUnit\Framework\Constraint\TraversableContainsOnly
;
use
PHPUnit\Framework\MockObject\Rule\AnyInvokedCount
as
AnyInvokedCountMatcher
;
use
PHPUnit\Framework\MockObject\Rule\InvokedAtIndex
as
InvokedAtIndexMatcher
;
use
PHPUnit\Framework\MockObject\Rule\InvokedAtLeastCount
as
InvokedAtLeastCountMatcher
;
use
PHPUnit\Framework\MockObject\Rule\InvokedAtLeastOnce
as
InvokedAtLeastOnceMatcher
;
use
PHPUnit\Framework\MockObject\Rule\InvokedAtMostCount
as
InvokedAtMostCountMatcher
;
use
PHPUnit\Framework\MockObject\Rule\InvokedCount
as
InvokedCountMatcher
;
use
PHPUnit\Framework\MockObject\Stub\ConsecutiveCalls
as
ConsecutiveCallsStub
;
use
PHPUnit\Framework\MockObject\Stub\Exception
as
ExceptionStub
;
use
PHPUnit\Framework\MockObject\Stub\ReturnArgument
as
ReturnArgumentStub
;
use
PHPUnit\Framework\MockObject\Stub\ReturnCallback
as
ReturnCallbackStub
;
use
PHPUnit\Framework\MockObject\Stub\ReturnSelf
as
ReturnSelfStub
;
use
PHPUnit\Framework\MockObject\Stub\ReturnStub
;
use
PHPUnit\Framework\MockObject\Stub\ReturnValueMap
as
ReturnValueMapStub
;
use
SebastianBergmann\RecursionContext\InvalidArgumentException
;
use
Throwable
;
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertArrayHasKey'
))
{
/**
* Asserts that an array has a specified key.
*
* @param int|string $key
* @param array|ArrayAccess $array
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertArrayHasKey
*/
function
assertArrayHasKey
(
$key
,
$array
,
string
$message
=
''
):
void
{
Assert
::
assertArrayHasKey
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertArrayNotHasKey'
))
{
/**
* Asserts that an array does not have a specified key.
*
* @param int|string $key
* @param array|ArrayAccess $array
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertArrayNotHasKey
*/
function
assertArrayNotHasKey
(
$key
,
$array
,
string
$message
=
''
):
void
{
Assert
::
assertArrayNotHasKey
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertContains'
))
{
/**
* Asserts that a haystack contains a needle.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertContains
*/
function
assertContains
(
$needle
,
iterable
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertContains
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertContainsEquals'
))
{
function
assertContainsEquals
(
$needle
,
iterable
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertContainsEquals
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotContains'
))
{
/**
* Asserts that a haystack does not contain a needle.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotContains
*/
function
assertNotContains
(
$needle
,
iterable
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertNotContains
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotContainsEquals'
))
{
function
assertNotContainsEquals
(
$needle
,
iterable
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertNotContainsEquals
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertContainsOnly'
))
{
/**
* Asserts that a haystack contains only values of a given type.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertContainsOnly
*/
function
assertContainsOnly
(
string
$type
,
iterable
$haystack
,
?
bool
$isNativeType
=
null
,
string
$message
=
''
):
void
{
Assert
::
assertContainsOnly
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertContainsOnlyInstancesOf'
))
{
/**
* Asserts that a haystack contains only instances of a given class name.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertContainsOnlyInstancesOf
*/
function
assertContainsOnlyInstancesOf
(
string
$className
,
iterable
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertContainsOnlyInstancesOf
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotContainsOnly'
))
{
/**
* Asserts that a haystack does not contain only values of a given type.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotContainsOnly
*/
function
assertNotContainsOnly
(
string
$type
,
iterable
$haystack
,
?
bool
$isNativeType
=
null
,
string
$message
=
''
):
void
{
Assert
::
assertNotContainsOnly
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertCount'
))
{
/**
* Asserts the number of elements of an array, Countable or Traversable.
*
* @param Countable|iterable $haystack
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertCount
*/
function
assertCount
(
int
$expectedCount
,
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertCount
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotCount'
))
{
/**
* Asserts the number of elements of an array, Countable or Traversable.
*
* @param Countable|iterable $haystack
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotCount
*/
function
assertNotCount
(
int
$expectedCount
,
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertNotCount
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertEquals'
))
{
/**
* Asserts that two variables are equal.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertEquals
*/
function
assertEquals
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertEquals
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertEqualsCanonicalizing'
))
{
/**
* Asserts that two variables are equal (canonicalizing).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertEqualsCanonicalizing
*/
function
assertEqualsCanonicalizing
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertEqualsCanonicalizing
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertEqualsIgnoringCase'
))
{
/**
* Asserts that two variables are equal (ignoring case).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertEqualsIgnoringCase
*/
function
assertEqualsIgnoringCase
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertEqualsIgnoringCase
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertEqualsWithDelta'
))
{
/**
* Asserts that two variables are equal (with delta).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertEqualsWithDelta
*/
function
assertEqualsWithDelta
(
$expected
,
$actual
,
float
$delta
,
string
$message
=
''
):
void
{
Assert
::
assertEqualsWithDelta
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotEquals'
))
{
/**
* Asserts that two variables are not equal.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotEquals
*/
function
assertNotEquals
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertNotEquals
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotEqualsCanonicalizing'
))
{
/**
* Asserts that two variables are not equal (canonicalizing).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotEqualsCanonicalizing
*/
function
assertNotEqualsCanonicalizing
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertNotEqualsCanonicalizing
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotEqualsIgnoringCase'
))
{
/**
* Asserts that two variables are not equal (ignoring case).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotEqualsIgnoringCase
*/
function
assertNotEqualsIgnoringCase
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertNotEqualsIgnoringCase
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotEqualsWithDelta'
))
{
/**
* Asserts that two variables are not equal (with delta).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotEqualsWithDelta
*/
function
assertNotEqualsWithDelta
(
$expected
,
$actual
,
float
$delta
,
string
$message
=
''
):
void
{
Assert
::
assertNotEqualsWithDelta
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertObjectEquals'
))
{
/**
* @throws ExpectationFailedException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertObjectEquals
*/
function
assertObjectEquals
(
object
$expected
,
object
$actual
,
string
$method
=
'equals'
,
string
$message
=
''
):
void
{
Assert
::
assertObjectEquals
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertEmpty'
))
{
/**
* Asserts that a variable is empty.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert empty $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertEmpty
*/
function
assertEmpty
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertEmpty
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotEmpty'
))
{
/**
* Asserts that a variable is not empty.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !empty $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotEmpty
*/
function
assertNotEmpty
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertNotEmpty
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertGreaterThan'
))
{
/**
* Asserts that a value is greater than another value.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertGreaterThan
*/
function
assertGreaterThan
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertGreaterThan
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertGreaterThanOrEqual'
))
{
/**
* Asserts that a value is greater than or equal to another value.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertGreaterThanOrEqual
*/
function
assertGreaterThanOrEqual
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertGreaterThanOrEqual
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertLessThan'
))
{
/**
* Asserts that a value is smaller than another value.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertLessThan
*/
function
assertLessThan
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertLessThan
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertLessThanOrEqual'
))
{
/**
* Asserts that a value is smaller than or equal to another value.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertLessThanOrEqual
*/
function
assertLessThanOrEqual
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertLessThanOrEqual
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileEquals'
))
{
/**
* Asserts that the contents of one file is equal to the contents of another
* file.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileEquals
*/
function
assertFileEquals
(
string
$expected
,
string
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertFileEquals
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileEqualsCanonicalizing'
))
{
/**
* Asserts that the contents of one file is equal to the contents of another
* file (canonicalizing).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileEqualsCanonicalizing
*/
function
assertFileEqualsCanonicalizing
(
string
$expected
,
string
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertFileEqualsCanonicalizing
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileEqualsIgnoringCase'
))
{
/**
* Asserts that the contents of one file is equal to the contents of another
* file (ignoring case).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileEqualsIgnoringCase
*/
function
assertFileEqualsIgnoringCase
(
string
$expected
,
string
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertFileEqualsIgnoringCase
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileNotEquals'
))
{
/**
* Asserts that the contents of one file is not equal to the contents of
* another file.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileNotEquals
*/
function
assertFileNotEquals
(
string
$expected
,
string
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertFileNotEquals
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileNotEqualsCanonicalizing'
))
{
/**
* Asserts that the contents of one file is not equal to the contents of another
* file (canonicalizing).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileNotEqualsCanonicalizing
*/
function
assertFileNotEqualsCanonicalizing
(
string
$expected
,
string
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertFileNotEqualsCanonicalizing
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileNotEqualsIgnoringCase'
))
{
/**
* Asserts that the contents of one file is not equal to the contents of another
* file (ignoring case).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileNotEqualsIgnoringCase
*/
function
assertFileNotEqualsIgnoringCase
(
string
$expected
,
string
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertFileNotEqualsIgnoringCase
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringEqualsFile'
))
{
/**
* Asserts that the contents of a string is equal
* to the contents of a file.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringEqualsFile
*/
function
assertStringEqualsFile
(
string
$expectedFile
,
string
$actualString
,
string
$message
=
''
):
void
{
Assert
::
assertStringEqualsFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringEqualsFileCanonicalizing'
))
{
/**
* Asserts that the contents of a string is equal
* to the contents of a file (canonicalizing).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringEqualsFileCanonicalizing
*/
function
assertStringEqualsFileCanonicalizing
(
string
$expectedFile
,
string
$actualString
,
string
$message
=
''
):
void
{
Assert
::
assertStringEqualsFileCanonicalizing
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringEqualsFileIgnoringCase'
))
{
/**
* Asserts that the contents of a string is equal
* to the contents of a file (ignoring case).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringEqualsFileIgnoringCase
*/
function
assertStringEqualsFileIgnoringCase
(
string
$expectedFile
,
string
$actualString
,
string
$message
=
''
):
void
{
Assert
::
assertStringEqualsFileIgnoringCase
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringNotEqualsFile'
))
{
/**
* Asserts that the contents of a string is not equal
* to the contents of a file.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringNotEqualsFile
*/
function
assertStringNotEqualsFile
(
string
$expectedFile
,
string
$actualString
,
string
$message
=
''
):
void
{
Assert
::
assertStringNotEqualsFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringNotEqualsFileCanonicalizing'
))
{
/**
* Asserts that the contents of a string is not equal
* to the contents of a file (canonicalizing).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringNotEqualsFileCanonicalizing
*/
function
assertStringNotEqualsFileCanonicalizing
(
string
$expectedFile
,
string
$actualString
,
string
$message
=
''
):
void
{
Assert
::
assertStringNotEqualsFileCanonicalizing
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringNotEqualsFileIgnoringCase'
))
{
/**
* Asserts that the contents of a string is not equal
* to the contents of a file (ignoring case).
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringNotEqualsFileIgnoringCase
*/
function
assertStringNotEqualsFileIgnoringCase
(
string
$expectedFile
,
string
$actualString
,
string
$message
=
''
):
void
{
Assert
::
assertStringNotEqualsFileIgnoringCase
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsReadable'
))
{
/**
* Asserts that a file/dir is readable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsReadable
*/
function
assertIsReadable
(
string
$filename
,
string
$message
=
''
):
void
{
Assert
::
assertIsReadable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotReadable'
))
{
/**
* Asserts that a file/dir exists and is not readable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotReadable
*/
function
assertIsNotReadable
(
string
$filename
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotReadable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotIsReadable'
))
{
/**
* Asserts that a file/dir exists and is not readable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4062
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotIsReadable
*/
function
assertNotIsReadable
(
string
$filename
,
string
$message
=
''
):
void
{
Assert
::
assertNotIsReadable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsWritable'
))
{
/**
* Asserts that a file/dir exists and is writable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsWritable
*/
function
assertIsWritable
(
string
$filename
,
string
$message
=
''
):
void
{
Assert
::
assertIsWritable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotWritable'
))
{
/**
* Asserts that a file/dir exists and is not writable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotWritable
*/
function
assertIsNotWritable
(
string
$filename
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotWritable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotIsWritable'
))
{
/**
* Asserts that a file/dir exists and is not writable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4065
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotIsWritable
*/
function
assertNotIsWritable
(
string
$filename
,
string
$message
=
''
):
void
{
Assert
::
assertNotIsWritable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertDirectoryExists'
))
{
/**
* Asserts that a directory exists.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertDirectoryExists
*/
function
assertDirectoryExists
(
string
$directory
,
string
$message
=
''
):
void
{
Assert
::
assertDirectoryExists
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertDirectoryDoesNotExist'
))
{
/**
* Asserts that a directory does not exist.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertDirectoryDoesNotExist
*/
function
assertDirectoryDoesNotExist
(
string
$directory
,
string
$message
=
''
):
void
{
Assert
::
assertDirectoryDoesNotExist
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertDirectoryNotExists'
))
{
/**
* Asserts that a directory does not exist.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4068
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertDirectoryNotExists
*/
function
assertDirectoryNotExists
(
string
$directory
,
string
$message
=
''
):
void
{
Assert
::
assertDirectoryNotExists
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertDirectoryIsReadable'
))
{
/**
* Asserts that a directory exists and is readable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertDirectoryIsReadable
*/
function
assertDirectoryIsReadable
(
string
$directory
,
string
$message
=
''
):
void
{
Assert
::
assertDirectoryIsReadable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertDirectoryIsNotReadable'
))
{
/**
* Asserts that a directory exists and is not readable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertDirectoryIsNotReadable
*/
function
assertDirectoryIsNotReadable
(
string
$directory
,
string
$message
=
''
):
void
{
Assert
::
assertDirectoryIsNotReadable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertDirectoryNotIsReadable'
))
{
/**
* Asserts that a directory exists and is not readable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4071
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertDirectoryNotIsReadable
*/
function
assertDirectoryNotIsReadable
(
string
$directory
,
string
$message
=
''
):
void
{
Assert
::
assertDirectoryNotIsReadable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertDirectoryIsWritable'
))
{
/**
* Asserts that a directory exists and is writable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertDirectoryIsWritable
*/
function
assertDirectoryIsWritable
(
string
$directory
,
string
$message
=
''
):
void
{
Assert
::
assertDirectoryIsWritable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertDirectoryIsNotWritable'
))
{
/**
* Asserts that a directory exists and is not writable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertDirectoryIsNotWritable
*/
function
assertDirectoryIsNotWritable
(
string
$directory
,
string
$message
=
''
):
void
{
Assert
::
assertDirectoryIsNotWritable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertDirectoryNotIsWritable'
))
{
/**
* Asserts that a directory exists and is not writable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4074
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertDirectoryNotIsWritable
*/
function
assertDirectoryNotIsWritable
(
string
$directory
,
string
$message
=
''
):
void
{
Assert
::
assertDirectoryNotIsWritable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileExists'
))
{
/**
* Asserts that a file exists.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileExists
*/
function
assertFileExists
(
string
$filename
,
string
$message
=
''
):
void
{
Assert
::
assertFileExists
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileDoesNotExist'
))
{
/**
* Asserts that a file does not exist.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileDoesNotExist
*/
function
assertFileDoesNotExist
(
string
$filename
,
string
$message
=
''
):
void
{
Assert
::
assertFileDoesNotExist
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileNotExists'
))
{
/**
* Asserts that a file does not exist.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4077
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileNotExists
*/
function
assertFileNotExists
(
string
$filename
,
string
$message
=
''
):
void
{
Assert
::
assertFileNotExists
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileIsReadable'
))
{
/**
* Asserts that a file exists and is readable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileIsReadable
*/
function
assertFileIsReadable
(
string
$file
,
string
$message
=
''
):
void
{
Assert
::
assertFileIsReadable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileIsNotReadable'
))
{
/**
* Asserts that a file exists and is not readable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileIsNotReadable
*/
function
assertFileIsNotReadable
(
string
$file
,
string
$message
=
''
):
void
{
Assert
::
assertFileIsNotReadable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileNotIsReadable'
))
{
/**
* Asserts that a file exists and is not readable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4080
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileNotIsReadable
*/
function
assertFileNotIsReadable
(
string
$file
,
string
$message
=
''
):
void
{
Assert
::
assertFileNotIsReadable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileIsWritable'
))
{
/**
* Asserts that a file exists and is writable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileIsWritable
*/
function
assertFileIsWritable
(
string
$file
,
string
$message
=
''
):
void
{
Assert
::
assertFileIsWritable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileIsNotWritable'
))
{
/**
* Asserts that a file exists and is not writable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileIsNotWritable
*/
function
assertFileIsNotWritable
(
string
$file
,
string
$message
=
''
):
void
{
Assert
::
assertFileIsNotWritable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFileNotIsWritable'
))
{
/**
* Asserts that a file exists and is not writable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4083
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFileNotIsWritable
*/
function
assertFileNotIsWritable
(
string
$file
,
string
$message
=
''
):
void
{
Assert
::
assertFileNotIsWritable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertTrue'
))
{
/**
* Asserts that a condition is true.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert true $condition
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertTrue
*/
function
assertTrue
(
$condition
,
string
$message
=
''
):
void
{
Assert
::
assertTrue
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotTrue'
))
{
/**
* Asserts that a condition is not true.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !true $condition
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotTrue
*/
function
assertNotTrue
(
$condition
,
string
$message
=
''
):
void
{
Assert
::
assertNotTrue
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFalse'
))
{
/**
* Asserts that a condition is false.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert false $condition
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFalse
*/
function
assertFalse
(
$condition
,
string
$message
=
''
):
void
{
Assert
::
assertFalse
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotFalse'
))
{
/**
* Asserts that a condition is not false.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !false $condition
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotFalse
*/
function
assertNotFalse
(
$condition
,
string
$message
=
''
):
void
{
Assert
::
assertNotFalse
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNull'
))
{
/**
* Asserts that a variable is null.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert null $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNull
*/
function
assertNull
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertNull
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotNull'
))
{
/**
* Asserts that a variable is not null.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !null $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotNull
*/
function
assertNotNull
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertNotNull
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertFinite'
))
{
/**
* Asserts that a variable is finite.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertFinite
*/
function
assertFinite
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertFinite
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertInfinite'
))
{
/**
* Asserts that a variable is infinite.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertInfinite
*/
function
assertInfinite
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertInfinite
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNan'
))
{
/**
* Asserts that a variable is nan.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNan
*/
function
assertNan
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertNan
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertClassHasAttribute'
))
{
/**
* Asserts that a class has a specified attribute.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertClassHasAttribute
*/
function
assertClassHasAttribute
(
string
$attributeName
,
string
$className
,
string
$message
=
''
):
void
{
Assert
::
assertClassHasAttribute
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertClassNotHasAttribute'
))
{
/**
* Asserts that a class does not have a specified attribute.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertClassNotHasAttribute
*/
function
assertClassNotHasAttribute
(
string
$attributeName
,
string
$className
,
string
$message
=
''
):
void
{
Assert
::
assertClassNotHasAttribute
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertClassHasStaticAttribute'
))
{
/**
* Asserts that a class has a specified static attribute.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertClassHasStaticAttribute
*/
function
assertClassHasStaticAttribute
(
string
$attributeName
,
string
$className
,
string
$message
=
''
):
void
{
Assert
::
assertClassHasStaticAttribute
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertClassNotHasStaticAttribute'
))
{
/**
* Asserts that a class does not have a specified static attribute.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertClassNotHasStaticAttribute
*/
function
assertClassNotHasStaticAttribute
(
string
$attributeName
,
string
$className
,
string
$message
=
''
):
void
{
Assert
::
assertClassNotHasStaticAttribute
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertObjectHasAttribute'
))
{
/**
* Asserts that an object has a specified attribute.
*
* @param object $object
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertObjectHasAttribute
*/
function
assertObjectHasAttribute
(
string
$attributeName
,
$object
,
string
$message
=
''
):
void
{
Assert
::
assertObjectHasAttribute
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertObjectNotHasAttribute'
))
{
/**
* Asserts that an object does not have a specified attribute.
*
* @param object $object
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertObjectNotHasAttribute
*/
function
assertObjectNotHasAttribute
(
string
$attributeName
,
$object
,
string
$message
=
''
):
void
{
Assert
::
assertObjectNotHasAttribute
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertObjectHasProperty'
))
{
/**
* Asserts that an object has a specified property.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertObjectHasProperty
*/
function
assertObjectHasProperty
(
string
$attributeName
,
object
$object
,
string
$message
=
''
):
void
{
Assert
::
assertObjectHasProperty
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertObjectNotHasProperty'
))
{
/**
* Asserts that an object does not have a specified property.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertObjectNotHasProperty
*/
function
assertObjectNotHasProperty
(
string
$attributeName
,
object
$object
,
string
$message
=
''
):
void
{
Assert
::
assertObjectNotHasProperty
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertSame'
))
{
/**
* Asserts that two variables have the same type and value.
* Used on objects, it asserts that two variables reference
* the same object.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-template ExpectedType
*
* @psalm-param ExpectedType $expected
*
* @psalm-assert =ExpectedType $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertSame
*/
function
assertSame
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertSame
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotSame'
))
{
/**
* Asserts that two variables do not have the same type and value.
* Used on objects, it asserts that two variables do not reference
* the same object.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotSame
*/
function
assertNotSame
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertNotSame
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertInstanceOf'
))
{
/**
* Asserts that a variable is of a given type.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @psalm-template ExpectedType of object
*
* @psalm-param class-string<ExpectedType> $expected
*
* @psalm-assert =ExpectedType $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertInstanceOf
*/
function
assertInstanceOf
(
string
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertInstanceOf
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotInstanceOf'
))
{
/**
* Asserts that a variable is not of a given type.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @psalm-template ExpectedType of object
*
* @psalm-param class-string<ExpectedType> $expected
*
* @psalm-assert !ExpectedType $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotInstanceOf
*/
function
assertNotInstanceOf
(
string
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertNotInstanceOf
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsArray'
))
{
/**
* Asserts that a variable is of type array.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert array $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsArray
*/
function
assertIsArray
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsArray
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsBool'
))
{
/**
* Asserts that a variable is of type bool.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert bool $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsBool
*/
function
assertIsBool
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsBool
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsFloat'
))
{
/**
* Asserts that a variable is of type float.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert float $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsFloat
*/
function
assertIsFloat
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsFloat
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsInt'
))
{
/**
* Asserts that a variable is of type int.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert int $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsInt
*/
function
assertIsInt
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsInt
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNumeric'
))
{
/**
* Asserts that a variable is of type numeric.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert numeric $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNumeric
*/
function
assertIsNumeric
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNumeric
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsObject'
))
{
/**
* Asserts that a variable is of type object.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert object $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsObject
*/
function
assertIsObject
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsObject
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsResource'
))
{
/**
* Asserts that a variable is of type resource.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert resource $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsResource
*/
function
assertIsResource
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsResource
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsClosedResource'
))
{
/**
* Asserts that a variable is of type resource and is closed.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert resource $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsClosedResource
*/
function
assertIsClosedResource
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsClosedResource
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsString'
))
{
/**
* Asserts that a variable is of type string.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert string $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsString
*/
function
assertIsString
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsString
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsScalar'
))
{
/**
* Asserts that a variable is of type scalar.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert scalar $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsScalar
*/
function
assertIsScalar
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsScalar
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsCallable'
))
{
/**
* Asserts that a variable is of type callable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert callable $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsCallable
*/
function
assertIsCallable
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsCallable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsIterable'
))
{
/**
* Asserts that a variable is of type iterable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert iterable $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsIterable
*/
function
assertIsIterable
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsIterable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotArray'
))
{
/**
* Asserts that a variable is not of type array.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !array $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotArray
*/
function
assertIsNotArray
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotArray
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotBool'
))
{
/**
* Asserts that a variable is not of type bool.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !bool $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotBool
*/
function
assertIsNotBool
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotBool
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotFloat'
))
{
/**
* Asserts that a variable is not of type float.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !float $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotFloat
*/
function
assertIsNotFloat
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotFloat
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotInt'
))
{
/**
* Asserts that a variable is not of type int.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !int $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotInt
*/
function
assertIsNotInt
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotInt
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotNumeric'
))
{
/**
* Asserts that a variable is not of type numeric.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !numeric $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotNumeric
*/
function
assertIsNotNumeric
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotNumeric
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotObject'
))
{
/**
* Asserts that a variable is not of type object.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !object $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotObject
*/
function
assertIsNotObject
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotObject
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotResource'
))
{
/**
* Asserts that a variable is not of type resource.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !resource $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotResource
*/
function
assertIsNotResource
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotResource
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotClosedResource'
))
{
/**
* Asserts that a variable is not of type resource.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !resource $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotClosedResource
*/
function
assertIsNotClosedResource
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotClosedResource
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotString'
))
{
/**
* Asserts that a variable is not of type string.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !string $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotString
*/
function
assertIsNotString
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotString
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotScalar'
))
{
/**
* Asserts that a variable is not of type scalar.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !scalar $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotScalar
*/
function
assertIsNotScalar
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotScalar
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotCallable'
))
{
/**
* Asserts that a variable is not of type callable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !callable $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotCallable
*/
function
assertIsNotCallable
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotCallable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertIsNotIterable'
))
{
/**
* Asserts that a variable is not of type iterable.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @psalm-assert !iterable $actual
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertIsNotIterable
*/
function
assertIsNotIterable
(
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertIsNotIterable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertMatchesRegularExpression'
))
{
/**
* Asserts that a string matches a given regular expression.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertMatchesRegularExpression
*/
function
assertMatchesRegularExpression
(
string
$pattern
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertMatchesRegularExpression
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertRegExp'
))
{
/**
* Asserts that a string matches a given regular expression.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4086
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertRegExp
*/
function
assertRegExp
(
string
$pattern
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertRegExp
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertDoesNotMatchRegularExpression'
))
{
/**
* Asserts that a string does not match a given regular expression.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertDoesNotMatchRegularExpression
*/
function
assertDoesNotMatchRegularExpression
(
string
$pattern
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertDoesNotMatchRegularExpression
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotRegExp'
))
{
/**
* Asserts that a string does not match a given regular expression.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4089
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotRegExp
*/
function
assertNotRegExp
(
string
$pattern
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertNotRegExp
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertSameSize'
))
{
/**
* Assert that the size of two arrays (or `Countable` or `Traversable` objects)
* is the same.
*
* @param Countable|iterable $expected
* @param Countable|iterable $actual
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertSameSize
*/
function
assertSameSize
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertSameSize
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertNotSameSize'
))
{
/**
* Assert that the size of two arrays (or `Countable` or `Traversable` objects)
* is not the same.
*
* @param Countable|iterable $expected
* @param Countable|iterable $actual
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotSameSize
*/
function
assertNotSameSize
(
$expected
,
$actual
,
string
$message
=
''
):
void
{
Assert
::
assertNotSameSize
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringMatchesFormat'
))
{
/**
* Asserts that a string matches a given format string.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringMatchesFormat
*/
function
assertStringMatchesFormat
(
string
$format
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertStringMatchesFormat
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringNotMatchesFormat'
))
{
/**
* Asserts that a string does not match a given format string.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringNotMatchesFormat
*/
function
assertStringNotMatchesFormat
(
string
$format
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertStringNotMatchesFormat
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringMatchesFormatFile'
))
{
/**
* Asserts that a string matches a given format file.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringMatchesFormatFile
*/
function
assertStringMatchesFormatFile
(
string
$formatFile
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertStringMatchesFormatFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringNotMatchesFormatFile'
))
{
/**
* Asserts that a string does not match a given format string.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringNotMatchesFormatFile
*/
function
assertStringNotMatchesFormatFile
(
string
$formatFile
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertStringNotMatchesFormatFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringStartsWith'
))
{
/**
* Asserts that a string starts with a given prefix.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringStartsWith
*/
function
assertStringStartsWith
(
string
$prefix
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertStringStartsWith
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringStartsNotWith'
))
{
/**
* Asserts that a string starts not with a given prefix.
*
* @param string $prefix
* @param string $string
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringStartsNotWith
*/
function
assertStringStartsNotWith
(
$prefix
,
$string
,
string
$message
=
''
):
void
{
Assert
::
assertStringStartsNotWith
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringContainsString'
))
{
/**
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringContainsString
*/
function
assertStringContainsString
(
string
$needle
,
string
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertStringContainsString
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringContainsStringIgnoringCase'
))
{
/**
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringContainsStringIgnoringCase
*/
function
assertStringContainsStringIgnoringCase
(
string
$needle
,
string
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertStringContainsStringIgnoringCase
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringNotContainsString'
))
{
/**
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringNotContainsString
*/
function
assertStringNotContainsString
(
string
$needle
,
string
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertStringNotContainsString
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringNotContainsStringIgnoringCase'
))
{
/**
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringNotContainsStringIgnoringCase
*/
function
assertStringNotContainsStringIgnoringCase
(
string
$needle
,
string
$haystack
,
string
$message
=
''
):
void
{
Assert
::
assertStringNotContainsStringIgnoringCase
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringEndsWith'
))
{
/**
* Asserts that a string ends with a given suffix.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringEndsWith
*/
function
assertStringEndsWith
(
string
$suffix
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertStringEndsWith
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertStringEndsNotWith'
))
{
/**
* Asserts that a string ends not with a given suffix.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertStringEndsNotWith
*/
function
assertStringEndsNotWith
(
string
$suffix
,
string
$string
,
string
$message
=
''
):
void
{
Assert
::
assertStringEndsNotWith
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertXmlFileEqualsXmlFile'
))
{
/**
* Asserts that two XML files are equal.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertXmlFileEqualsXmlFile
*/
function
assertXmlFileEqualsXmlFile
(
string
$expectedFile
,
string
$actualFile
,
string
$message
=
''
):
void
{
Assert
::
assertXmlFileEqualsXmlFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertXmlFileNotEqualsXmlFile'
))
{
/**
* Asserts that two XML files are not equal.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \PHPUnit\Util\Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertXmlFileNotEqualsXmlFile
*/
function
assertXmlFileNotEqualsXmlFile
(
string
$expectedFile
,
string
$actualFile
,
string
$message
=
''
):
void
{
Assert
::
assertXmlFileNotEqualsXmlFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertXmlStringEqualsXmlFile'
))
{
/**
* Asserts that two XML documents are equal.
*
* @param DOMDocument|string $actualXml
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \PHPUnit\Util\Xml\Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertXmlStringEqualsXmlFile
*/
function
assertXmlStringEqualsXmlFile
(
string
$expectedFile
,
$actualXml
,
string
$message
=
''
):
void
{
Assert
::
assertXmlStringEqualsXmlFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertXmlStringNotEqualsXmlFile'
))
{
/**
* Asserts that two XML documents are not equal.
*
* @param DOMDocument|string $actualXml
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \PHPUnit\Util\Xml\Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertXmlStringNotEqualsXmlFile
*/
function
assertXmlStringNotEqualsXmlFile
(
string
$expectedFile
,
$actualXml
,
string
$message
=
''
):
void
{
Assert
::
assertXmlStringNotEqualsXmlFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertXmlStringEqualsXmlString'
))
{
/**
* Asserts that two XML documents are equal.
*
* @param DOMDocument|string $expectedXml
* @param DOMDocument|string $actualXml
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \PHPUnit\Util\Xml\Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertXmlStringEqualsXmlString
*/
function
assertXmlStringEqualsXmlString
(
$expectedXml
,
$actualXml
,
string
$message
=
''
):
void
{
Assert
::
assertXmlStringEqualsXmlString
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertXmlStringNotEqualsXmlString'
))
{
/**
* Asserts that two XML documents are not equal.
*
* @param DOMDocument|string $expectedXml
* @param DOMDocument|string $actualXml
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \PHPUnit\Util\Xml\Exception
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertXmlStringNotEqualsXmlString
*/
function
assertXmlStringNotEqualsXmlString
(
$expectedXml
,
$actualXml
,
string
$message
=
''
):
void
{
Assert
::
assertXmlStringNotEqualsXmlString
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertEqualXMLStructure'
))
{
/**
* Asserts that a hierarchy of DOMElements matches.
*
* @throws AssertionFailedError
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4091
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertEqualXMLStructure
*/
function
assertEqualXMLStructure
(
DOMElement
$expectedElement
,
DOMElement
$actualElement
,
bool
$checkAttributes
=
false
,
string
$message
=
''
):
void
{
Assert
::
assertEqualXMLStructure
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertThat'
))
{
/**
* Evaluates a PHPUnit\Framework\Constraint matcher object.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertThat
*/
function
assertThat
(
$value
,
Constraint
$constraint
,
string
$message
=
''
):
void
{
Assert
::
assertThat
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertJson'
))
{
/**
* Asserts that a string is a valid JSON string.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertJson
*/
function
assertJson
(
string
$actualJson
,
string
$message
=
''
):
void
{
Assert
::
assertJson
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertJsonStringEqualsJsonString'
))
{
/**
* Asserts that two given JSON encoded objects or arrays are equal.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertJsonStringEqualsJsonString
*/
function
assertJsonStringEqualsJsonString
(
string
$expectedJson
,
string
$actualJson
,
string
$message
=
''
):
void
{
Assert
::
assertJsonStringEqualsJsonString
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertJsonStringNotEqualsJsonString'
))
{
/**
* Asserts that two given JSON encoded objects or arrays are not equal.
*
* @param string $expectedJson
* @param string $actualJson
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertJsonStringNotEqualsJsonString
*/
function
assertJsonStringNotEqualsJsonString
(
$expectedJson
,
$actualJson
,
string
$message
=
''
):
void
{
Assert
::
assertJsonStringNotEqualsJsonString
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertJsonStringEqualsJsonFile'
))
{
/**
* Asserts that the generated JSON encoded object and the content of the given file are equal.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertJsonStringEqualsJsonFile
*/
function
assertJsonStringEqualsJsonFile
(
string
$expectedFile
,
string
$actualJson
,
string
$message
=
''
):
void
{
Assert
::
assertJsonStringEqualsJsonFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertJsonStringNotEqualsJsonFile'
))
{
/**
* Asserts that the generated JSON encoded object and the content of the given file are not equal.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertJsonStringNotEqualsJsonFile
*/
function
assertJsonStringNotEqualsJsonFile
(
string
$expectedFile
,
string
$actualJson
,
string
$message
=
''
):
void
{
Assert
::
assertJsonStringNotEqualsJsonFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertJsonFileEqualsJsonFile'
))
{
/**
* Asserts that two JSON files are equal.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertJsonFileEqualsJsonFile
*/
function
assertJsonFileEqualsJsonFile
(
string
$expectedFile
,
string
$actualFile
,
string
$message
=
''
):
void
{
Assert
::
assertJsonFileEqualsJsonFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ssertJsonFileNotEqualsJsonFile'
))
{
/**
* Asserts that two JSON files are not equal.
*
* @throws ExpectationFailedException
* @throws InvalidArgumentException
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertJsonFileNotEqualsJsonFile
*/
function
assertJsonFileNotEqualsJsonFile
(
string
$expectedFile
,
string
$actualFile
,
string
$message
=
''
):
void
{
Assert
::
assertJsonFileNotEqualsJsonFile
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\l
ogicalAnd'
))
{
function
logicalAnd
():
LogicalAnd
{
return
Assert
::
logicalAnd
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\l
ogicalOr'
))
{
function
logicalOr
():
LogicalOr
{
return
Assert
::
logicalOr
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\l
ogicalNot'
))
{
function
logicalNot
(
Constraint
$constraint
):
LogicalNot
{
return
Assert
::
logicalNot
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\l
ogicalXor'
))
{
function
logicalXor
():
LogicalXor
{
return
Assert
::
logicalXor
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
nything'
))
{
function
anything
():
IsAnything
{
return
Assert
::
anything
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sTrue'
))
{
function
isTrue
():
IsTrue
{
return
Assert
::
isTrue
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\c
allback'
))
{
function
callback
(
callable
$callback
):
Callback
{
return
Assert
::
callback
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sFalse'
))
{
function
isFalse
():
IsFalse
{
return
Assert
::
isFalse
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sJson'
))
{
function
isJson
():
IsJson
{
return
Assert
::
isJson
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sNull'
))
{
function
isNull
():
IsNull
{
return
Assert
::
isNull
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sFinite'
))
{
function
isFinite
():
IsFinite
{
return
Assert
::
isFinite
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sInfinite'
))
{
function
isInfinite
():
IsInfinite
{
return
Assert
::
isInfinite
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sNan'
))
{
function
isNan
():
IsNan
{
return
Assert
::
isNan
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\c
ontainsEqual'
))
{
function
containsEqual
(
$value
):
TraversableContainsEqual
{
return
Assert
::
containsEqual
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\c
ontainsIdentical'
))
{
function
containsIdentical
(
$value
):
TraversableContainsIdentical
{
return
Assert
::
containsIdentical
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\c
ontainsOnly'
))
{
function
containsOnly
(
string
$type
):
TraversableContainsOnly
{
return
Assert
::
containsOnly
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\c
ontainsOnlyInstancesOf'
))
{
function
containsOnlyInstancesOf
(
string
$className
):
TraversableContainsOnly
{
return
Assert
::
containsOnlyInstancesOf
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
rrayHasKey'
))
{
function
arrayHasKey
(
$key
):
ArrayHasKey
{
return
Assert
::
arrayHasKey
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\e
qualTo'
))
{
function
equalTo
(
$value
):
IsEqual
{
return
Assert
::
equalTo
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\e
qualToCanonicalizing'
))
{
function
equalToCanonicalizing
(
$value
):
IsEqualCanonicalizing
{
return
Assert
::
equalToCanonicalizing
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\e
qualToIgnoringCase'
))
{
function
equalToIgnoringCase
(
$value
):
IsEqualIgnoringCase
{
return
Assert
::
equalToIgnoringCase
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\e
qualToWithDelta'
))
{
function
equalToWithDelta
(
$value
,
float
$delta
):
IsEqualWithDelta
{
return
Assert
::
equalToWithDelta
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sEmpty'
))
{
function
isEmpty
():
IsEmpty
{
return
Assert
::
isEmpty
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sWritable'
))
{
function
isWritable
():
IsWritable
{
return
Assert
::
isWritable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sReadable'
))
{
function
isReadable
():
IsReadable
{
return
Assert
::
isReadable
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\d
irectoryExists'
))
{
function
directoryExists
():
DirectoryExists
{
return
Assert
::
directoryExists
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\f
ileExists'
))
{
function
fileExists
():
FileExists
{
return
Assert
::
fileExists
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\g
reaterThan'
))
{
function
greaterThan
(
$value
):
GreaterThan
{
return
Assert
::
greaterThan
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\g
reaterThanOrEqual'
))
{
function
greaterThanOrEqual
(
$value
):
LogicalOr
{
return
Assert
::
greaterThanOrEqual
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\c
lassHasAttribute'
))
{
function
classHasAttribute
(
string
$attributeName
):
ClassHasAttribute
{
return
Assert
::
classHasAttribute
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\c
lassHasStaticAttribute'
))
{
function
classHasStaticAttribute
(
string
$attributeName
):
ClassHasStaticAttribute
{
return
Assert
::
classHasStaticAttribute
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\o
bjectHasAttribute'
))
{
function
objectHasAttribute
(
$attributeName
):
ObjectHasAttribute
{
return
Assert
::
objectHasAttribute
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
denticalTo'
))
{
function
identicalTo
(
$value
):
IsIdentical
{
return
Assert
::
identicalTo
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sInstanceOf'
))
{
function
isInstanceOf
(
string
$className
):
IsInstanceOf
{
return
Assert
::
isInstanceOf
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\i
sType'
))
{
function
isType
(
string
$type
):
IsType
{
return
Assert
::
isType
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\l
essThan'
))
{
function
lessThan
(
$value
):
LessThan
{
return
Assert
::
lessThan
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\l
essThanOrEqual'
))
{
function
lessThanOrEqual
(
$value
):
LogicalOr
{
return
Assert
::
lessThanOrEqual
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\m
atchesRegularExpression'
))
{
function
matchesRegularExpression
(
string
$pattern
):
RegularExpression
{
return
Assert
::
matchesRegularExpression
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\m
atches'
))
{
function
matches
(
string
$string
):
StringMatchesFormatDescription
{
return
Assert
::
matches
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\s
tringStartsWith'
))
{
function
stringStartsWith
(
$prefix
):
StringStartsWith
{
return
Assert
::
stringStartsWith
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\s
tringContains'
))
{
function
stringContains
(
string
$string
,
bool
$case
=
true
):
StringContains
{
return
Assert
::
stringContains
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\s
tringEndsWith'
))
{
function
stringEndsWith
(
string
$suffix
):
StringEndsWith
{
return
Assert
::
stringEndsWith
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\c
ountOf'
))
{
function
countOf
(
int
$count
):
Count
{
return
Assert
::
countOf
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\o
bjectEquals'
))
{
function
objectEquals
(
object
$object
,
string
$method
=
'equals'
):
ObjectEquals
{
return
Assert
::
objectEquals
(...
func_get_args
());
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
ny'
))
{
/**
* Returns a matcher that matches when the method is executed
* zero or more times.
*/
function
any
():
AnyInvokedCountMatcher
{
return
new
AnyInvokedCountMatcher
;
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\n
ever'
))
{
/**
* Returns a matcher that matches when the method is never executed.
*/
function
never
():
InvokedCountMatcher
{
return
new
InvokedCountMatcher
(
0
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
tLeast'
))
{
/**
* Returns a matcher that matches when the method is executed
* at least N times.
*/
function
atLeast
(
int
$requiredInvocations
):
InvokedAtLeastCountMatcher
{
return
new
InvokedAtLeastCountMatcher
(
$requiredInvocations
,
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
tLeastOnce'
))
{
/**
* Returns a matcher that matches when the method is executed at least once.
*/
function
atLeastOnce
():
InvokedAtLeastOnceMatcher
{
return
new
InvokedAtLeastOnceMatcher
;
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\o
nce'
))
{
/**
* Returns a matcher that matches when the method is executed exactly once.
*/
function
once
():
InvokedCountMatcher
{
return
new
InvokedCountMatcher
(
1
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\e
xactly'
))
{
/**
* Returns a matcher that matches when the method is executed
* exactly $count times.
*/
function
exactly
(
int
$count
):
InvokedCountMatcher
{
return
new
InvokedCountMatcher
(
$count
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
tMost'
))
{
/**
* Returns a matcher that matches when the method is executed
* at most N times.
*/
function
atMost
(
int
$allowedInvocations
):
InvokedAtMostCountMatcher
{
return
new
InvokedAtMostCountMatcher
(
$allowedInvocations
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\a
t'
))
{
/**
* Returns a matcher that matches when the method is executed
* at the given index.
*/
function
at
(
int
$index
):
InvokedAtIndexMatcher
{
return
new
InvokedAtIndexMatcher
(
$index
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\r
eturnValue'
))
{
function
returnValue
(
$value
):
ReturnStub
{
return
new
ReturnStub
(
$value
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\r
eturnValueMap'
))
{
function
returnValueMap
(
array
$valueMap
):
ReturnValueMapStub
{
return
new
ReturnValueMapStub
(
$valueMap
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\r
eturnArgument'
))
{
function
returnArgument
(
int
$argumentIndex
):
ReturnArgumentStub
{
return
new
ReturnArgumentStub
(
$argumentIndex
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\r
eturnCallback'
))
{
function
returnCallback
(
$callback
):
ReturnCallbackStub
{
return
new
ReturnCallbackStub
(
$callback
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\r
eturnSelf'
))
{
/**
* Returns the current object.
*
* This method is useful when mocking a fluent interface.
*/
function
returnSelf
():
ReturnSelfStub
{
return
new
ReturnSelfStub
;
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\t
hrowException'
))
{
function
throwException
(
Throwable
$exception
):
ExceptionStub
{
return
new
ExceptionStub
(
$exception
);
}
}
if
(!
function_exists
(
'PHPUnit
\F
ramework
\o
nConsecutiveCalls'
))
{
function
onConsecutiveCalls
():
ConsecutiveCallsStub
{
$args
=
func_get_args
();
return
new
ConsecutiveCallsStub
(
$args
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 08:25 (1 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
37/ed/e9c8d70a91b21f87816389ce1d3b
Default Alt Text
Functions.php (95 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment