From d67b23edca3d44cd318b518cdae0e116d2a2619f Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 7 Jan 2025 23:48:16 +0100 Subject: [PATCH] README: improve readability of table for `AssertIsType` trait Also see: https://github.com/Yoast/PHPUnit-Polyfills/pull/225#pullrequestreview-2535048560 --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ad96ca4..1000074 100644 --- a/README.md +++ b/README.md @@ -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.