com phpruntests: phpuntests - minor adjustments precondition-classes to be in line with the coding-standards:
src/configuration/preconditions/rtIfParallelHasPcntl.php src/configuration/preconditions/rtIsExecutableSet.php
src/configuration/preconditions/rtIsPcreLoaded.php src/configuration/preconditions/rtIsPhpVersionCorrect.php
src/configuration/preconditions/rtIsProcOpenAvailable.php src/configuration/preconditions/rtIsSafeModeDisabled.php src/c
| From: | David Soria Parra | Date: | Wed, 13 May 2009 20:13:46 +0000 |
| Subject: | com phpruntests: phpuntests - minor adjustments precondition-classes to be in line with the coding-standards: src/configuration/preconditions/rtIfParallelHasPcntl.php src/configuration/preconditions/rtIsExecutableSet.php src/configuration/preconditions/rtIsPcreLoaded.php src/configuration/preconditions/rtIsPhpVersionCorrect.php src/configuration/preconditions/rtIsProcOpenAvailable.php src/configuration/preconditions/rtIsSafeModeDisabled.php src/c |
||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66462@lists.php.net to get a copy of this message | ||
Commit: b31b3366a54a89f3f1ed1f24326f0cf840f0040d
Author: Georg Gradwohl <g2@php.net> Wed, 13 May 2009 20:13:46 +0000
Parents: d238e3db2d982e5fdb3a7407e014ea4e7ea24d4b
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=b31b3366a54a89f3f1ed1f24326f0cf840f0040d
Log:
phpuntests - minor adjustments precondition-classes to be in line with the coding-standards
Changed paths:
M src/configuration/preconditions/rtIfParallelHasPcntl.php
M src/configuration/preconditions/rtIsExecutableSet.php
M src/configuration/preconditions/rtIsPcreLoaded.php
M src/configuration/preconditions/rtIsPhpVersionCorrect.php
M src/configuration/preconditions/rtIsProcOpenAvailable.php
M src/configuration/preconditions/rtIsSafeModeDisabled.php
M src/configuration/preconditions/rtIsTestFileSpecified.php
M src/testClassMap.php
A tests/configuration/preconditions/rtIsPhpVersionCorrectTest.php
D tests/configuration/preconditions/rtVersionCheckTest.php
diff --git a/src/configuration/preconditions/rtIfParallelHasPcntl.php b/src/configuration/preconditions/rtIfParallelHasPcntl.php index 245bbd7..128230d 100644 --- a/src/configuration/preconditions/rtIfParallelHasPcntl.php +++ b/src/configuration/preconditions/rtIfParallelHasPcntl.php @@ -21,7 +21,6 @@ class rtIfParallelHasPcntl extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { @@ -31,17 +30,5 @@ class rtIfParallelHasPcntl extends rtPreCondition return true; } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if ($commandLine->hasOption('z') || $environmentVariables->hasVariable('TESTS_PHP_PARALLEL')) { - return extension_loaded('pcntl'); - } - - return true; - } - */ } ?> diff --git a/src/configuration/preconditions/rtIsExecutableSet.php b/src/configuration/preconditions/rtIsExecutableSet.php index ab1deef..f8ca619 100644 --- a/src/configuration/preconditions/rtIsExecutableSet.php +++ b/src/configuration/preconditions/rtIsExecutableSet.php @@ -22,7 +22,6 @@ class rtIsExecutableSet extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { @@ -36,21 +35,5 @@ class rtIsExecutableSet extends rtPreCondition return false; } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if ($commandLine->hasOption('p')) { - return true; - } - - if ($environmentVariables->hasVariable('TEST_PHP_EXECUTABLE')) { - return true; - } - - return false; - } - */ } ?> diff --git a/src/configuration/preconditions/rtIsPcreLoaded.php b/src/configuration/preconditions/rtIsPcreLoaded.php index c9dac85..2d193d4 100644 --- a/src/configuration/preconditions/rtIsPcreLoaded.php +++ b/src/configuration/preconditions/rtIsPcreLoaded.php @@ -20,23 +20,10 @@ class rtIsPcreLoaded extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { return extension_loaded('pcre'); } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if (extension_loaded('pcre')) { - return true; - } - - return false; - } - */ } ?> diff --git a/src/configuration/preconditions/rtIsPhpVersionCorrect.php b/src/configuration/preconditions/rtIsPhpVersionCorrect.php index cd3e8d4..ca0278e 100644 --- a/src/configuration/preconditions/rtIsPhpVersionCorrect.php +++ b/src/configuration/preconditions/rtIsPhpVersionCorrect.php @@ -17,15 +17,11 @@ class rtIsPhpVersionCorrect extends rtPreCondition { /** - * the required major-version of the php-executeable - * * @var int */ private $requiredMajorVersion = 5; /** - * the required minor-version of the php-executeable - * * @var int */ private $requiredMinorVersion = 3; @@ -34,7 +30,6 @@ class rtIsPhpVersionCorrect extends rtPreCondition * Return the message associated with an invalid php-version * * @return text - * @access public */ public function getMessage() { @@ -47,7 +42,6 @@ class rtIsPhpVersionCorrect extends rtPreCondition * @param rtRuntestsConfiguration $config * * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { @@ -66,7 +60,6 @@ class rtIsPhpVersionCorrect extends rtPreCondition * @param string $versionStr output of "php -v" * * @return boolean - * @access public */ public function parseVersionString($versionStr) { diff --git a/src/configuration/preconditions/rtIsProcOpenAvailable.php b/src/configuration/preconditions/rtIsProcOpenAvailable.php index 0c055ee..071a9b5 100644 --- a/src/configuration/preconditions/rtIsProcOpenAvailable.php +++ b/src/configuration/preconditions/rtIsProcOpenAvailable.php @@ -21,23 +21,10 @@ class rtIsProcOpenAvailable extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { return function_exists('proc_open'); } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if (function_exists('proc_open')) { - return true; - } - - return false; - } - */ } ?> diff --git a/src/configuration/preconditions/rtIsSafeModeDisabled.php b/src/configuration/preconditions/rtIsSafeModeDisabled.php index 2a9cc8d..695328b 100644 --- a/src/configuration/preconditions/rtIsSafeModeDisabled.php +++ b/src/configuration/preconditions/rtIsSafeModeDisabled.php @@ -21,7 +21,6 @@ class rtIsSafeModeDisabled extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { @@ -31,17 +30,5 @@ class rtIsSafeModeDisabled extends rtPreCondition return false; } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if (!ini_get('safe_mode')) { - return true; - } - - return false; - } - */ } ?> diff --git a/src/configuration/preconditions/rtIsTestFileSpecified.php b/src/configuration/preconditions/rtIsTestFileSpecified.php index f7c86d4..1409953 100644 --- a/src/configuration/preconditions/rtIsTestFileSpecified.php +++ b/src/configuration/preconditions/rtIsTestFileSpecified.php @@ -20,7 +20,6 @@ class rtIsTestFileSpecified extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { @@ -42,29 +41,5 @@ class rtIsTestFileSpecified extends rtPreCondition return false; } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if ($commandLine->hasOption('l')) { - return true; - } - - if ($commandLine->hasOption('r')) { - return true; - } - - if ($commandLine->getTestFilename() != null) { - return true; - } - - if ($environmentVariables->hasVariable('TEST_PHP_USER')) { - return true; - } - - return false; - } - */ } ?> diff --git a/src/testClassMap.php b/src/testClassMap.php index 952f761..f9bb46b 100644 --- a/src/testClassMap.php +++ b/src/testClassMap.php @@ -43,7 +43,7 @@ $rtClassMap = array( 'rtHasNoDuplicateSections' => 'testcase/preconditions/rtHasNoDuplicateSections.php', 'rtIsSectionImplemented' => 'testcase/preconditions/rtIsSectionImplemented.php', 'rtIsValidSectionName' => 'testcase/preconditions/rtIsValidSectionName.php', - 'rtVersionCheckTest' => 'configuration/preconditions/rtVersionCheckTest.php'. + 'rtIsPhpVersionCorrectTest' => 'configuration/preconditions/rtIsPhpVersionCorrectTest.php'. 'rtPhpRunner' => 'testcase/rtPhpRunner.php', 'rtPhpTest' => 'testcase/rtPhpTest.php', 'rtPhpTestFile' => 'testcase/rtPhpTestFile.php', diff --git a/tests/configuration/preconditions/rtIsPhpVersionCorrectTest.php b/tests/configuration/preconditions/rtIsPhpVersionCorrectTest.php new file mode 100644 index 0000000..51d126b --- /dev/null +++ b/tests/configuration/preconditions/rtIsPhpVersionCorrectTest.php @@ -0,0 +1,46 @@ +<?php + +require_once 'PHPUnit/Framework.php'; +require_once dirname(__FILE__) . '../../../../src/rtAutoload.php'; + +class rtIsPhpVersionCorrectTest extends PHPUnit_Framework_TestCase +{ + private $versionCheck = null; + + protected function setUp() + { + $this->versionCheck = new rtIsPhpVersionCorrect(); + } + + protected function tearDown() + { + $this->versionCheck = null; + } + + public function testCorrectVersion() + { + $str = "PHP 5.3.0RC1 (cli) (built: Apr 26 2009 02:49:56) + Copyright (c) 1997-2009 The PHP Group + Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies"; + + $this->assertTrue($this->versionCheck->parseVersionString($str)); + $this->assertTrue($this->versionCheck->parseVersionString("PHP 6.2.0")); + } + + public function testIncorrectVersion() + { + $str = "PHP 5.2.9 (cli) (built: Apr 26 2009 03:15:54) + Copyright (c) 1997-2009 The PHP Group + Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies"; + + $this->assertFalse($this->versionCheck->parseVersionString($str)); + $this->assertFalse($this->versionCheck->parseVersionString("PHP 4.4.9")); + } + + public function testInvalidString() + { + $this->assertFalse($this->versionCheck->parseVersionString("5.3.0")); + $this->assertFalse($this->versionCheck->parseVersionString("PHP 5.2 PHP 6.0")); + } +} +?> diff --git a/tests/configuration/preconditions/rtVersionCheckTest.php b/tests/configuration/preconditions/rtVersionCheckTest.php deleted file mode 100644 index 28e04f4..0000000 --- a/tests/configuration/preconditions/rtVersionCheckTest.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php - -require_once 'PHPUnit/Framework.php'; -require_once dirname(__FILE__) . '../../../../src/rtAutoload.php'; - -class rtVersionCheckTest extends PHPUnit_Framework_TestCase -{ - private $versionCheck = null; - - protected function setUp() - { - $this->versionCheck = new rtIsPhpVersionCorrect(); - } - - protected function tearDown() - { - $this->versionCheck = null; - } - - public function testCorrectVersion() - { - $str = "PHP 5.3.0RC1 (cli) (built: Apr 26 2009 02:49:56) - Copyright (c) 1997-2009 The PHP Group - Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies"; - - $this->assertTrue($this->versionCheck->parseVersionString($str)); - $this->assertTrue($this->versionCheck->parseVersionString("PHP 6.2.0")); - } - - public function testIncorrectVersion() - { - $str = "PHP 5.2.9 (cli) (built: Apr 26 2009 03:15:54) - Copyright (c) 1997-2009 The PHP Group - Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies"; - - $this->assertFalse($this->versionCheck->parseVersionString($str)); - $this->assertFalse($this->versionCheck->parseVersionString("PHP 4.4.9")); - } - - public function testInvalidString() - { - $this->assertFalse($this->versionCheck->parseVersionString("5.3.0")); - $this->assertFalse($this->versionCheck->parseVersionString("PHP 5.2 PHP 6.0")); - } -} -?>
diff --git a/src/configuration/preconditions/rtIfParallelHasPcntl.php b/src/configuration/preconditions/rtIfParallelHasPcntl.php index 245bbd7..128230d 100644 --- a/src/configuration/preconditions/rtIfParallelHasPcntl.php +++ b/src/configuration/preconditions/rtIfParallelHasPcntl.php @@ -21,7 +21,6 @@ class rtIfParallelHasPcntl extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { @@ -31,17 +30,5 @@ class rtIfParallelHasPcntl extends rtPreCondition return true; } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if ($commandLine->hasOption('z') || $environmentVariables->hasVariable('TESTS_PHP_PARALLEL')) { - return extension_loaded('pcntl'); - } - - return true; - } - */ } ?> diff --git a/src/configuration/preconditions/rtIsExecutableSet.php b/src/configuration/preconditions/rtIsExecutableSet.php index ab1deef..f8ca619 100644 --- a/src/configuration/preconditions/rtIsExecutableSet.php +++ b/src/configuration/preconditions/rtIsExecutableSet.php @@ -22,7 +22,6 @@ class rtIsExecutableSet extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { @@ -36,21 +35,5 @@ class rtIsExecutableSet extends rtPreCondition return false; } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if ($commandLine->hasOption('p')) { - return true; - } - - if ($environmentVariables->hasVariable('TEST_PHP_EXECUTABLE')) { - return true; - } - - return false; - } - */ } ?> diff --git a/src/configuration/preconditions/rtIsPcreLoaded.php b/src/configuration/preconditions/rtIsPcreLoaded.php index c9dac85..2d193d4 100644 --- a/src/configuration/preconditions/rtIsPcreLoaded.php +++ b/src/configuration/preconditions/rtIsPcreLoaded.php @@ -20,23 +20,10 @@ class rtIsPcreLoaded extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { return extension_loaded('pcre'); } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if (extension_loaded('pcre')) { - return true; - } - - return false; - } - */ } ?> diff --git a/src/configuration/preconditions/rtIsPhpVersionCorrect.php b/src/configuration/preconditions/rtIsPhpVersionCorrect.php index cd3e8d4..ca0278e 100644 --- a/src/configuration/preconditions/rtIsPhpVersionCorrect.php +++ b/src/configuration/preconditions/rtIsPhpVersionCorrect.php @@ -17,15 +17,11 @@ class rtIsPhpVersionCorrect extends rtPreCondition { /** - * the required major-version of the php-executeable - * * @var int */ private $requiredMajorVersion = 5; /** - * the required minor-version of the php-executeable - * * @var int */ private $requiredMinorVersion = 3; @@ -34,7 +30,6 @@ class rtIsPhpVersionCorrect extends rtPreCondition * Return the message associated with an invalid php-version * * @return text - * @access public */ public function getMessage() { @@ -47,7 +42,6 @@ class rtIsPhpVersionCorrect extends rtPreCondition * @param rtRuntestsConfiguration $config * * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { @@ -66,7 +60,6 @@ class rtIsPhpVersionCorrect extends rtPreCondition * @param string $versionStr output of "php -v" * * @return boolean - * @access public */ public function parseVersionString($versionStr) { diff --git a/src/configuration/preconditions/rtIsProcOpenAvailable.php b/src/configuration/preconditions/rtIsProcOpenAvailable.php index 0c055ee..071a9b5 100644 --- a/src/configuration/preconditions/rtIsProcOpenAvailable.php +++ b/src/configuration/preconditions/rtIsProcOpenAvailable.php @@ -21,23 +21,10 @@ class rtIsProcOpenAvailable extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { return function_exists('proc_open'); } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if (function_exists('proc_open')) { - return true; - } - - return false; - } - */ } ?> diff --git a/src/configuration/preconditions/rtIsSafeModeDisabled.php b/src/configuration/preconditions/rtIsSafeModeDisabled.php index 2a9cc8d..695328b 100644 --- a/src/configuration/preconditions/rtIsSafeModeDisabled.php +++ b/src/configuration/preconditions/rtIsSafeModeDisabled.php @@ -21,7 +21,6 @@ class rtIsSafeModeDisabled extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { @@ -31,17 +30,5 @@ class rtIsSafeModeDisabled extends rtPreCondition return false; } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if (!ini_get('safe_mode')) { - return true; - } - - return false; - } - */ } ?> diff --git a/src/configuration/preconditions/rtIsTestFileSpecified.php b/src/configuration/preconditions/rtIsTestFileSpecified.php index f7c86d4..1409953 100644 --- a/src/configuration/preconditions/rtIsTestFileSpecified.php +++ b/src/configuration/preconditions/rtIsTestFileSpecified.php @@ -20,7 +20,6 @@ class rtIsTestFileSpecified extends rtPreCondition * * @param rtRuntestsConfiguration $config * @return boolean - * @access public */ public function check(rtRuntestsConfiguration $config) { @@ -42,29 +41,5 @@ class rtIsTestFileSpecified extends rtPreCondition return false; } - - - /* - public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) - { - if ($commandLine->hasOption('l')) { - return true; - } - - if ($commandLine->hasOption('r')) { - return true; - } - - if ($commandLine->getTestFilename() != null) { - return true; - } - - if ($environmentVariables->hasVariable('TEST_PHP_USER')) { - return true; - } - - return false; - } - */ } ?> diff --git a/src/testClassMap.php b/src/testClassMap.php index 952f761..f9bb46b 100644 --- a/src/testClassMap.php +++ b/src/testClassMap.php @@ -43,7 +43,7 @@ $rtClassMap = array( 'rtHasNoDuplicateSections' => 'testcase/preconditions/rtHasNoDuplicateSections.php', 'rtIsSectionImplemented' => 'testcase/preconditions/rtIsSectionImplemented.php', 'rtIsValidSectionName' => 'testcase/preconditions/rtIsValidSectionName.php', - 'rtVersionCheckTest' => 'configuration/preconditions/rtVersionCheckTest.php'. + 'rtIsPhpVersionCorrectTest' => 'configuration/preconditions/rtIsPhpVersionCorrectTest.php'. 'rtPhpRunner' => 'testcase/rtPhpRunner.php', 'rtPhpTest' => 'testcase/rtPhpTest.php', 'rtPhpTestFile' => 'testcase/rtPhpTestFile.php', diff --git a/tests/configuration/preconditions/rtIsPhpVersionCorrectTest.php b/tests/configuration/preconditions/rtIsPhpVersionCorrectTest.php new file mode 100644 index 0000000..51d126b --- /dev/null +++ b/tests/configuration/preconditions/rtIsPhpVersionCorrectTest.php @@ -0,0 +1,46 @@ +<?php + +require_once 'PHPUnit/Framework.php'; +require_once dirname(__FILE__) . '../../../../src/rtAutoload.php'; + +class rtIsPhpVersionCorrectTest extends PHPUnit_Framework_TestCase +{ + private $versionCheck = null; + + protected function setUp() + { + $this->versionCheck = new rtIsPhpVersionCorrect(); + } + + protected function tearDown() + { + $this->versionCheck = null; + } + + public function testCorrectVersion() + { + $str = "PHP 5.3.0RC1 (cli) (built: Apr 26 2009 02:49:56) + Copyright (c) 1997-2009 The PHP Group + Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies"; + + $this->assertTrue($this->versionCheck->parseVersionString($str)); + $this->assertTrue($this->versionCheck->parseVersionString("PHP 6.2.0")); + } + + public function testIncorrectVersion() + { + $str = "PHP 5.2.9 (cli) (built: Apr 26 2009 03:15:54) + Copyright (c) 1997-2009 The PHP Group + Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies"; + + $this->assertFalse($this->versionCheck->parseVersionString($str)); + $this->assertFalse($this->versionCheck->parseVersionString("PHP 4.4.9")); + } + + public function testInvalidString() + { + $this->assertFalse($this->versionCheck->parseVersionString("5.3.0")); + $this->assertFalse($this->versionCheck->parseVersionString("PHP 5.2 PHP 6.0")); + } +} +?> diff --git a/tests/configuration/preconditions/rtVersionCheckTest.php b/tests/configuration/preconditions/rtVersionCheckTest.php deleted file mode 100644 index 28e04f4..0000000 --- a/tests/configuration/preconditions/rtVersionCheckTest.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php - -require_once 'PHPUnit/Framework.php'; -require_once dirname(__FILE__) . '../../../../src/rtAutoload.php'; - -class rtVersionCheckTest extends PHPUnit_Framework_TestCase -{ - private $versionCheck = null; - - protected function setUp() - { - $this->versionCheck = new rtIsPhpVersionCorrect(); - } - - protected function tearDown() - { - $this->versionCheck = null; - } - - public function testCorrectVersion() - { - $str = "PHP 5.3.0RC1 (cli) (built: Apr 26 2009 02:49:56) - Copyright (c) 1997-2009 The PHP Group - Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies"; - - $this->assertTrue($this->versionCheck->parseVersionString($str)); - $this->assertTrue($this->versionCheck->parseVersionString("PHP 6.2.0")); - } - - public function testIncorrectVersion() - { - $str = "PHP 5.2.9 (cli) (built: Apr 26 2009 03:15:54) - Copyright (c) 1997-2009 The PHP Group - Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies"; - - $this->assertFalse($this->versionCheck->parseVersionString($str)); - $this->assertFalse($this->versionCheck->parseVersionString("PHP 4.4.9")); - } - - public function testInvalidString() - { - $this->assertFalse($this->versionCheck->parseVersionString("5.3.0")); - $this->assertFalse($this->versionCheck->parseVersionString("PHP 5.2 PHP 6.0")); - } -} -?>