From 1e38226fd463de412188c6df2fee11cee06aa266 Mon Sep 17 00:00:00 2001 From: peter279k Date: Tue, 8 Dec 2020 00:00:46 +0800 Subject: [PATCH] Improve assertion and testing classes autoloading --- .travis.yml | 2 ++ tests/Rules/AcceptedTest.php | 2 +- tests/Rules/AfterTest.php | 2 +- tests/Rules/AlphaDashTest.php | 2 +- tests/Rules/AlphaNumTest.php | 2 +- tests/Rules/AlphaSpacesTest.php | 2 +- tests/Rules/AlphaTest.php | 2 +- tests/Rules/BeforeTest.php | 2 +- tests/Rules/BetweenTest.php | 2 +- tests/Rules/BooleanTest.php | 2 +- tests/Rules/CallbackTest.php | 2 +- tests/Rules/DateTest.php | 2 +- tests/Rules/DefaultsTest.php | 2 +- tests/Rules/DigitsBetweenTest.php | 2 +- tests/Rules/DigitsTest.php | 2 +- tests/Rules/EmailTest.php | 2 +- tests/Rules/ExtensionTest.php | 2 +- tests/Rules/InTest.php | 2 +- tests/Rules/IntegerTest.php | 2 +- tests/Rules/IpTest.php | 2 +- tests/Rules/Ipv4Test.php | 2 +- tests/Rules/Ipv6Test.php | 2 +- tests/Rules/JsonTest.php | 2 +- tests/Rules/LowercaseTest.php | 2 +- tests/Rules/MaxTest.php | 2 +- tests/Rules/MimesTest.php | 2 +- tests/Rules/MinTest.php | 2 +- tests/Rules/NotInTest.php | 2 +- tests/Rules/NumericTest.php | 2 +- tests/Rules/RegexTest.php | 2 +- tests/Rules/RequiredTest.php | 2 +- tests/Rules/TypeArrayTest.php | 2 +- tests/Rules/UploadedFileTest.php | 2 +- tests/Rules/UppercaseTest.php | 2 +- tests/Rules/UrlTest.php | 2 +- tests/ValidatorTest.php | 6 +++--- 36 files changed, 39 insertions(+), 37 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7224ddc..7abac1a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ php: - 7.0 - 7.1 - 7.2 + - 7.3 + - 7.4 before_script: - composer install diff --git a/tests/Rules/AcceptedTest.php b/tests/Rules/AcceptedTest.php index dbad471..b5fb746 100644 --- a/tests/Rules/AcceptedTest.php +++ b/tests/Rules/AcceptedTest.php @@ -1,6 +1,6 @@ assertFalse(isset($stuffs['three'])); + $this->assertArrayNotHasKey('three', $stuffs); } public function testGetInvalidData() @@ -1366,8 +1366,8 @@ public function testGetInvalidData() ], $invalidData); $stuffs = $invalidData['stuffs']; - $this->assertFalse(isset($stuffs['one'])); - $this->assertFalse(isset($stuffs['two'])); + $this->assertArrayNotHasKey('one', $stuffs); + $this->assertArrayNotHasKey('two', $stuffs); } public function testRuleInInvalidMessages()