Skip to content

Commit

Permalink
Support PHP5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Naktibalda committed Aug 24, 2019
1 parent a98d42e commit f831524
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ verify($user->getRoles())->notEmpty();
* stringNotContainsString
* stringContainsStringIgnoringCase
* stringNotContainsStringIgnoringCase
* array
* isArray
* bool
* float
* int
Expand All @@ -55,7 +55,7 @@ verify($user->getRoles())->notEmpty();
* resource
* string
* scalar
* callable
* isCallable
* notArray
* notBool
* notFloat
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
],
"require": {
"php": ">= 7.0",
"php": "5.6.*",
"phpunit/phpunit": "5.7.*",
"codeception/phpunit-wrapper": ">6.0.16 <6.1.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Codeception/Verify.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/VerifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function testIsString()

public function testIsArray()
{
verify([1,2,3])->array();
verify([1,2,3])->isArray();
verify(false)->notArray();
}

Expand Down Expand Up @@ -288,7 +288,7 @@ public function testIsScalar()

public function testIsCallable()
{
verify(function() {})->callable();
verify(function() {})->isCallable();
verify(false)->notCallable();
}

Expand Down

0 comments on commit f831524

Please sign in to comment.