Skip to content

Commit

Permalink
Merge pull request #14 from JBZoo/develop
Browse files Browse the repository at this point in the history
fix code style
  • Loading branch information
SmetDenis authored Aug 5, 2016
2 parents b6a2c68 + c82b7ec commit 005e50b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Sys.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public static function isPhp($version, $current = PHP_VERSION)
* @param string $current
* @return bool
*/
public static function Php53($current = PHP_VERSION)
public static function isPhp53($current = PHP_VERSION)
{
return self::isPhp('5.3', $current);
}
Expand Down
16 changes: 8 additions & 8 deletions tests/SysTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ public function testIsPHPVersion()

public function testIsPHP53()
{
isTrue(Sys::Php53('5.3'));
isTrue(Sys::Php53('5.3.0'));
isTrue(Sys::Php53('5.3.1'));

isFalse(Sys::Php53('5.2'));
isFalse(Sys::Php53('5.2.3'));
isFalse(Sys::Php53('5.4'));
isFalse(Sys::Php53('7.3'));
isTrue(Sys::isPhp53('5.3'));
isTrue(Sys::isPhp53('5.3.0'));
isTrue(Sys::isPhp53('5.3.1'));

isFalse(Sys::isPhp53('5.2'));
isFalse(Sys::isPhp53('5.2.3'));
isFalse(Sys::isPhp53('5.4'));
isFalse(Sys::isPhp53('7.3'));
}

public function testIsPHP7()
Expand Down

0 comments on commit 005e50b

Please sign in to comment.