当前位置: 首页>>代码示例>>PHP>>正文


PHP SimpleTest::getVersion方法代码示例

本文整理汇总了PHP中SimpleTest::getVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleTest::getVersion方法的具体用法?PHP SimpleTest::getVersion怎么用?PHP SimpleTest::getVersion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SimpleTest的用法示例。


在下文中一共展示了SimpleTest::getVersion方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: AllTests

 function AllTests()
 {
     $this->TestSuite('FlatDB tests - Simple test' . SimpleTest::getVersion());
     $this->addFile(dirname(__FILE__) . '/test_rows.php');
     $this->addFile(dirname(__FILE__) . '/test_columns.php');
     $this->addFile(dirname(__FILE__) . '/test_read_add.php');
 }
开发者ID:rotvalli,项目名称:FlatDB,代码行数:7,代码来源:all_tests.php

示例2: AllTests

 function AllTests()
 {
     $this->GroupTest('All tests for SimpleTest ' . SimpleTest::getVersion());
     $this->addTestCase(new UnitTests());
     $this->addTestFile(dirname(__FILE__) . '/shell_test.php');
     $this->addTestFile(dirname(__FILE__) . '/live_test.php');
     $this->addTestFile(dirname(__FILE__) . '/acceptance_test.php');
 }
开发者ID:TomMaher,项目名称:umambo,代码行数:8,代码来源:test_groups.php

示例3: AllTests

 public function AllTests()
 {
     $this->TestSuite('All tests for SimpleTest ' . SimpleTest::getVersion());
     $this->addFile(dirname(__FILE__) . '/unit_tests.php');
     $this->addFile(dirname(__FILE__) . '/shell_test.php');
     $this->addFile(dirname(__FILE__) . '/live_test.php');
     $this->addFile(dirname(__FILE__) . '/acceptance_test.php');
 }
开发者ID:Clansuite,项目名称:Clansuite,代码行数:8,代码来源:all_tests.php

示例4: __construct

 function __construct()
 {
     parent::__construct('All tests for SimpleTest ' . SimpleTest::getVersion());
     $this->addFile(dirname(__FILE__) . '/unit_tests.php');
     $this->addFile(dirname(__FILE__) . '/shell_test.php');
     $this->addFile(dirname(__FILE__) . '/live_test.php');
     $this->addFile(dirname(__FILE__) . '/acceptance_test.php');
 }
开发者ID:triasfahrudin,项目名称:siska21,代码行数:8,代码来源:all_tests.php

示例5: ExtensionsTests

 public function ExtensionsTests()
 {
     $this->TestSuite('Extension tests for SimpleTest ' . SimpleTest::getVersion());
     $nodes = new RecursiveDirectoryIterator(dirname(__FILE__) . '/../extensions/');
     foreach (new RecursiveIteratorIterator($nodes) as $node) {
         if (preg_match('/test\\.php$/', $node->getFilename())) {
             $this->addFile($node->getPathname());
         }
     }
 }
开发者ID:Clansuite,项目名称:Clansuite,代码行数:10,代码来源:extensions_tests.php

示例6: __construct

 public function __construct()
 {
     parent::__construct('All tests for SimpleTest ' . SimpleTest::getVersion());
     $this->addFile(dirname(__FILE__) . '/unit_tests.php');
     $this->addFile(dirname(__FILE__) . '/shell_test.php');
     $this->addFile(dirname(__FILE__) . '/live_test.php');
     // jakoch: disabled acceptance tests.
     // because, we will not test against a live server over the network.
     //$this->addFile(dirname(__FILE__) . '/acceptance_test.php');
 }
开发者ID:VasuLief,项目名称:simpletest,代码行数:10,代码来源:all_tests.php

示例7: __construct

 public function __construct()
 {
     parent::__construct('All tests for SimpleTest ' . SimpleTest::getVersion());
     $this->addFile(dirname(__FILE__) . '/unit_tests.php');
     $this->addFile(dirname(__FILE__) . '/shell_test.php');
     $this->addFile(dirname(__FILE__) . '/live_test.php');
     // The acceptance tests "examples" are served via PHP's built-in webserver,
     // which is available from PHP5.4 on.
     if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
         $this->addFile(dirname(__FILE__) . '/acceptance_test.php');
     }
 }
开发者ID:guicara,项目名称:simpletest,代码行数:12,代码来源:all_tests.php

示例8: __construct

 function __construct()
 {
     /*
     And a little hack to make sure PHP does not timeout
     */
     //   http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
     set_time_limit(max(5 * 60, ini_get('max_execution_time')));
     parent::__construct('All tests for SimpleTest ' . SimpleTest::getVersion());
     $this->addFile(dirname(__FILE__) . '/unit_tests.php');
     $this->addFile(dirname(__FILE__) . '/shell_test.php');
     $this->addFile(dirname(__FILE__) . '/live_test.php');
     $this->addFile(dirname(__FILE__) . '/acceptance_test.php');
 }
开发者ID:GerHobbelt,项目名称:simpletest,代码行数:13,代码来源:all_tests.php

示例9: __construct

 public function __construct()
 {
     parent::__construct('All tests for SimpleTest ' . SimpleTest::getVersion());
     $this->addFile(__DIR__ . '/unit_tests.php');
     $this->addFile(__DIR__ . '/shell_test.php');
     /**
      * The "live" and "acceptance" tests require a running local webserver on "localhost:8080".
      * We are using PHP's built-in webserver to serve the "test/site".
      * The start command for the server is: `php -S localhost:8080 -t test/site`.
      */
     $this->addFile(__DIR__ . '/live_test.php');
     $this->addFile(__DIR__ . '/acceptance_test.php');
 }
开发者ID:simpletest,项目名称:simpletest,代码行数:13,代码来源:all_tests.php

示例10: AllTests

 function AllTests()
 {
     $this->TestSuite('All tests for evalcomix_tool ' . SimpleTest::getVersion());
     $this->addFile(dirname(__FILE__) . '/testevalcomix_tool.php');
     $this->addFile(dirname(__FILE__) . '/testevalcomix.php');
     $this->addFile(dirname(__FILE__) . '/testevalcomix_assessments.php');
     $this->addFile(dirname(__FILE__) . '/testevalcomix_modes.php');
     $this->addFile(dirname(__FILE__) . '/testevalcomix_modes_extra.php');
     $this->addFile(dirname(__FILE__) . '/testevalcomix_modes_time.php');
     $this->addFile(dirname(__FILE__) . '/testevalcomix_tasks.php');
     //$this->addFile(dirname(__FILE__) . '/testwebservice_evalcomix_client.php');
     $this->addFile(dirname(__FILE__) . '/testcalculator_average.php');
 }
开发者ID:srpaedagogus,项目名称:aulavirtual,代码行数:13,代码来源:all_tests.php

示例11: Form_Create

 protected function Form_Create()
 {
     $filesToSkip = array("QUnitTestCaseBase.php", "QTestForm.tpl.php");
     $arrFiles = QFolder::listFilesInFolder(__QCUBED_CORE__ . '/tests/qcubed-unit/');
     $arrTests = array();
     foreach ($arrFiles as $filename) {
         if (!in_array($filename, $filesToSkip)) {
             require_once __QCUBED_CORE__ . '/tests/qcubed-unit/' . $filename;
             $arrTests[] = str_replace(".php", "", $filename);
         }
     }
     $suite = new TestSuite('QCubed ' . QCUBED_VERSION_NUMBER_ONLY . ' Unit Tests - SimpleTest ' . SimpleTest::getVersion());
     foreach ($arrTests as $className) {
         $suite->add(new $className($this));
     }
     $suite->run(new QHtmlReporter());
 }
开发者ID:hiptc,项目名称:dle2wordpress,代码行数:17,代码来源:qcubed_unit_tests.php

示例12: AllTests

 function AllTests()
 {
     set_time_limit(500);
     $this->TestSuite('All PHP MySpace Test ' . SimpleTest::getVersion());
     $this->addFile(dirname(__FILE__) . '\\CurrentUserIdTest.php');
     $this->addFile(dirname(__FILE__) . '\\AlbumTest.php');
     $this->addFile(dirname(__FILE__) . '\\MediaItemTest.php');
     $this->addFile(dirname(__FILE__) . '\\MediaItemCommentsTest.php');
     $this->addFile(dirname(__FILE__) . '\\ActivitiesTest.php');
     $this->addFile(dirname(__FILE__) . '\\AppDataTest.php');
     $this->addFile(dirname(__FILE__) . '\\GroupTest.php');
     $this->addFile(dirname(__FILE__) . '\\PeopleTest.php');
     $this->addFile(dirname(__FILE__) . '\\NotificationTest.php');
     $this->addFile(dirname(__FILE__) . '\\StatusMoodTest.php');
     $this->addFile(dirname(__FILE__) . '\\ProfileCommentsTest.php');
     $this->addFile(dirname(__FILE__) . '\\OpenSearchTest.php');
     $this->addFile(dirname(__FILE__) . '\\PortableContactsTest.php');
     $this->addFile(dirname(__FILE__) . '\\SubscriptionTest.php');
 }
开发者ID:jozecuervo,项目名称:myspace-php-sdk,代码行数:19,代码来源:index.php

示例13: paintFooter

 /**
  * Output anything that should appear below all the test output, e.g. summary information.
  */
 function paintFooter($test_name)
 {
     $summarydata = new stdClass();
     $summarydata->run = $this->getTestCaseProgress();
     $summarydata->total = $this->getTestCaseCount();
     $summarydata->passes = $this->getPassCount();
     $summarydata->fails = $this->getFailCount();
     $summarydata->exceptions = $this->getExceptionCount();
     if ($summarydata->fails == 0 && $summarydata->exceptions == 0) {
         $status = "passed";
     } else {
         $status = "failed";
     }
     echo '<div class="unittestsummary ', $status, '">';
     echo $this->get_string('summary', $summarydata);
     echo '</div>';
     echo '<div class="performanceinfo">', $this->get_string('runat', userdate($this->timestart)), ' ', $this->get_string('timetakes', format_time(time() - $this->timestart)), ' ', $this->get_string('version', SimpleTest::getVersion()), '</div>';
 }
开发者ID:saurabh947,项目名称:MoodleLearning,代码行数:21,代码来源:ex_reporter.php

示例14: setUp

 public function setUp()
 {
     $this->addHeader('User-Agent: SimpleTest ' . SimpleTest::getVersion());
 }
开发者ID:ilune,项目名称:simpletest,代码行数:4,代码来源:dom_tester_test.php

示例15: getAgentLine

 /**
  *    Creates the user agent part of the request.
  *    @return string          Host line content.
  *    @access protected
  */
 protected function getAgentLine()
 {
     return 'User-Agent: ' . (empty($this->useragent) ? 'SimpleTest ' . SimpleTest::getVersion() : $this->useragent);
 }
开发者ID:GerHobbelt,项目名称:simpletest,代码行数:9,代码来源:http.php


注:本文中的SimpleTest::getVersion方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。