Source for file EnviromentTest.php
Documentation is available at EnviromentTest.php
* "THE BEER-WARE LICENSE" (Revision 42):
* "Sven Strittmatter" <ausserirdisch@sven-space.de> wrote this file.
* As long as you retain this notice you can do whatever you want with
* this stuff. If we meet some day, and you think this stuff is worth it,
* you can buy me a beer in return.
* @copyright Copyright (c) 2009 Sven Strittmatter
// Call Console_ApplicationTest::main() if this source file is executed directly.
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Console_EnviromentTest::main');
require_once(dirname(__FILE__ ) . '/../TestHelper.php');
require_once('Console/Enviroment.php');
* @copyright Copyright (c) 2009 Sven Strittmatter
* Runs the test methods of this class.
public static function main() {
require_once('PHPUnit/TextUI/TestRunner.php');
$suite = new PHPUnit_Framework_TestSuite("Console_EnviromentTest");
$result = PHPUnit_TextUI_TestRunner::run($suite);
* we asume cli cause tests run on console.
* @todo test try running on non CLI
switch (TESTS_CONSOLE_ENVIROMENT_TESTRUNNEROS) {
$this->markTestIncomplete('Untested os: ' . PHP_OS);
$this->markTestIncomplete('Untested os: ' . PHP_OS);
$this->markTestIncomplete('Untested os: ' . PHP_OS);
|