Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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