Add new asset methods

parent 02d20090
......@@ -222,6 +222,7 @@ abstract class PHPUnit_Framework_Assert {
string $filename,
string $message = '',
): void;
public function assertFinite(mixed $action, string $message = ''): void;
public function assertGreaterThan(
mixed $expected,
mixed $actual,
......@@ -232,6 +233,7 @@ abstract class PHPUnit_Framework_Assert {
mixed $actual,
string $message = '',
): void;
public function assertInfinite(mixed $action, string $message = ''): void;
public function assertInstanceOf<T>(
classname<T> $expected,
mixed $actual,
......@@ -283,6 +285,7 @@ abstract class PHPUnit_Framework_Assert {
mixed $actual,
string $message = '',
): void;
public function assertNan(mixed $action, string $message = ''): void;
public function assertNotContains(
mixed $needle,
mixed $array,
......@@ -514,10 +517,13 @@ abstract class PHPUnit_Framework_Assert {
): PHPUnit_Framework_Constraint_IsIdentical;
public function isEmpty(): PHPUnit_Framework_Constraint_IsEmpty;
public function isFalse(): PHPUnit_Framework_Constraint_IsFalse;
public function isFinite(): PHPUnit_Framework_Constraint_IsFinite;
public function isInfinite(): PHPUnit_Framework_Constraint_IsInfinite;
public function isInstanceOf<T>(
classname<T> $className,
): PHPUnit_Framework_Constraint_IsInstanceOf;
public function isJson(): PHPUnit_Framework_Constraint_IsJson;
public function isNan(): PHPUnit_Framework_Constraint_IsNan;
public function isNull(): PHPUnit_Framework_Constraint_IsNull;
public function isTrue(): PHPUnit_Framework_Constraint_IsTrue;
public function isType(string $type): PHPUnit_Framework_Constraint_IsType;
......
<?hh // decl
class PHPUnit_Framework_Constraint_IsFinite
extends PHPUnit_Framework_Constraint<mixed> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsInfinite
extends PHPUnit_Framework_Constraint<mixed> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsNan
extends PHPUnit_Framework_Constraint<mixed> {
public function toString(): string;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment