From f83152459cc96877f0703448190ed3df736f14c2 Mon Sep 17 00:00:00 2001 From: Gintautas Miselis Date: Sat, 24 Aug 2019 17:29:07 +0300 Subject: [PATCH] Support PHP5.6 --- README.md | 4 ++-- composer.json | 2 +- src/Codeception/Verify.php | 4 ++-- tests/VerifyTest.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f94c1f5..c36c2be 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ verify($user->getRoles())->notEmpty(); * stringNotContainsString * stringContainsStringIgnoringCase * stringNotContainsStringIgnoringCase -* array +* isArray * bool * float * int @@ -55,7 +55,7 @@ verify($user->getRoles())->notEmpty(); * resource * string * scalar -* callable +* isCallable * notArray * notBool * notFloat diff --git a/composer.json b/composer.json index 36350cb..1b487d9 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ } ], "require": { - "php": ">= 7.0", + "php": "5.6.*", "phpunit/phpunit": "5.7.*", "codeception/phpunit-wrapper": ">6.0.16 <6.1.0" }, diff --git a/src/Codeception/Verify.php b/src/Codeception/Verify.php index 22eae88..aedb676 100644 --- a/src/Codeception/Verify.php +++ b/src/Codeception/Verify.php @@ -325,7 +325,7 @@ public function stringNotContainsStringIgnoringCase($needle) a::assertStringNotContainsStringIgnoringCase($needle, $this->actual, $this->description); } - public function array() + public function isArray() { a::assertIsArray($this->actual, $this->description); } @@ -370,7 +370,7 @@ public function scalar() a::assertIsScalar($this->actual, $this->description); } - public function callable() + public function isCallable() { a::assertIsCallable($this->actual, $this->description); } diff --git a/tests/VerifyTest.php b/tests/VerifyTest.php index 6516cb0..9ba636a 100644 --- a/tests/VerifyTest.php +++ b/tests/VerifyTest.php @@ -240,7 +240,7 @@ public function testIsString() public function testIsArray() { - verify([1,2,3])->array(); + verify([1,2,3])->isArray(); verify(false)->notArray(); } @@ -288,7 +288,7 @@ public function testIsScalar() public function testIsCallable() { - verify(function() {})->callable(); + verify(function() {})->isCallable(); verify(false)->notCallable(); }