diff --git a/src/Sys.php b/src/Sys.php index a4bd86d..80617ad 100644 --- a/src/Sys.php +++ b/src/Sys.php @@ -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); } diff --git a/tests/SysTest.php b/tests/SysTest.php index ebbd12f..8846ac6 100644 --- a/tests/SysTest.php +++ b/tests/SysTest.php @@ -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()