Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: improve readability of table for AssertIsType trait #226

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,19 @@ This method was introduced in PHPUnit 6.4.0.

Polyfills the following methods:

| | | |
| --------------------------------- | --------------------------------- | ------------------------------- |
| [`Assert::assertIsArray()`] | [`Assert::assertIsBool()`] | [`Assert::assertIsFloat()`] |
| [`Assert::assertIsInt()`] | [`Assert::assertIsNumeric()`] | [`Assert::assertIsObject()`] |
| [`Assert::assertIsResource()`] | [`Assert::assertIsString()`] | [`Assert::assertIsScalar()`] |
| [`Assert::assertIsCallable()`] | [`Assert::assertIsIterable()`] | |
| [`Assert::assertIsNotArray()`] | [`Assert::assertIsNotBool()`] | [`Assert::assertIsNotFloat()`] |
| [`Assert::assertIsNotInt()`] | [`Assert::assertIsNotNumeric()`] | [`Assert::assertIsNotObject()`] |
| [`Assert::assertIsNotResource()`] | [`Assert::assertIsNotString()`] | [`Assert::assertIsNotScalar()`] |
| [`Assert::assertIsNotCallable()`] | [`Assert::assertIsNotIterable()`] | |
| | |
| ------------------------------ | --------------------------------- |
| [`Assert::assertIsArray()`] | [`Assert::assertIsNotArray()`] |
| [`Assert::assertIsBool()`] | [`Assert::assertIsNotBool()`] |
| [`Assert::assertIsFloat()`] | [`Assert::assertIsNotFloat()`] |
| [`Assert::assertIsInt()`] | [`Assert::assertIsNotInt()`] |
| [`Assert::assertIsNumeric()`] | [`Assert::assertIsNotNumeric()`] |
| [`Assert::assertIsObject()`] | [`Assert::assertIsNotObject()`] |
| [`Assert::assertIsResource()`] | [`Assert::assertIsNotResource()`] |
| [`Assert::assertIsString()`] | [`Assert::assertIsNotString()`] |
| [`Assert::assertIsScalar()`] | [`Assert::assertIsNotScalar()`] |
| [`Assert::assertIsCallable()`] | [`Assert::assertIsNotCallable()`] |
| [`Assert::assertIsIterable()`] | [`Assert::assertIsNotIterable()`] |

These methods were introduced in PHPUnit 7.5.0 as alternatives to the `Assert::assertInternalType()` and `Assert::assertNotInternalType()` methods, which were soft deprecated in PHPUnit 7.5.0, hard deprecated (warning) in PHPUnit 8.0.0 and removed in PHPUnit 9.0.0.

Expand Down
Loading