From 62d00df7b05f9fca07b9ee55405e3d3fe09cb4a3 Mon Sep 17 00:00:00 2001 From: smetdenis Date: Fri, 5 Aug 2016 09:36:49 +0700 Subject: [PATCH] add dev packs --- src/Sys.php | 2 +- tests/SysTest.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) 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()