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


PHP Test::getType方法代码示例

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


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

示例1: isValid

 /**
  * Check if input test is active
  *
  * @param Test $test
  * @param Suite $suite
  * @return boolean
  */
 public function isValid(Test $test, Suite $suite)
 {
     return $this->isActive() ? $this->name && $test->getName() === $this->name || $this->type && $test->getType() === $this->type || $this->group && $suite->getCurrentGroupName() === $this->group : true;
 }
开发者ID:wikidi,项目名称:envtesting,代码行数:11,代码来源:Filter.php

示例2: run

 /**
  * Given a test, run the Codeception test.
  *
  * @param  Test $test Current test to Run.
  * @return Test $test Updated test with log and result.
  */
 public function run(Test $test)
 {
     // Get the full command path to run the test.
     $command = $this->getCommandPath($test->getType(), $test->getFilename());
     // Attempt to set the correct writes to Codeceptions Log path.
     @chmod($this->getLogPath(), 0777);
     // Run the helper function (as it's not specific to Codeception)
     // which returns the result of running the terminal command into an array.
     $output = run_terminal_command($command);
     // Add the log to the test which also checks to see if there was a pass/fail.
     $test->setLog($output);
     return $test;
 }
开发者ID:johnitvn,项目名称:mg075hynlo5793r5gt,代码行数:19,代码来源:Codeception.class.php

示例3: Test

</div>';
                    }
                    break;
                case "view":
                    if (isset($_REQUEST["target"])) {
                        $target = $_REQUEST["target"];
                        $test = new Test($target);
                        $pageBody .= '
<table class="pretty">
<tr>
	<th>date</th>
	<td>' . $test->getStartDate() . '</td>
</tr>
<tr>
	<th>type</th>
	<td>' . $testTypes[$test->getType()] . '</td>
</tr>
<tr>
	<th>start year</th>
	<td>' . $test->getStartYear() . '</td>
</tr>
<tr>
	<th>stop year</th>
	<td>' . $test->getStopYear() . '</td>
</tr>
</table>';
                    } else {
                        $pageBody .= '
<div class="dialog error">
<p>No test to view was specified, perhaps you can identify one <a href="?section=subjects&amp;action=list">here</a>?</p>
</div>';
开发者ID:eebrah,项目名称:schoolsys,代码行数:31,代码来源:index.php


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