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


PHP PHP_CodeCoverage::setTests方法代码示例

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


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

示例1: coverage

 /**
  * @return \PHP_CodeCoverage
  */
 public function coverage()
 {
     $coverage = new \PHP_CodeCoverage();
     $coverage->setData($this->data);
     $coverage->setTests($this->tests);
     $filter = $coverage->filter();
     $filter->setBlacklistedFiles($this->blackList);
     $filter->setWhitelistedFiles($this->whiteList);
     return $coverage;
 }
开发者ID:greencape,项目名称:phing-tasks,代码行数:13,代码来源:CoverageCollector.php

示例2: array

<?php

$coverage = new PHP_CodeCoverage();
$coverage->setData(array('/var/www/phalcon-devtools/phalcon.local/vendor/stanislav-web/phalcon-uploader/src/Uploader/Helpers/Format.php' => array(47 => array(), 48 => array(), 49 => array(), 50 => NULL, 62 => array(), 64 => array(), 65 => array(), 67 => array(), 68 => array(), 69 => array(), 70 => array(), 71 => array(), 73 => array(), 75 => array(), 77 => array(), 78 => array(), 79 => array(), 81 => array(), 83 => array(), 84 => array(), 85 => array(), 87 => array(), 88 => NULL), '/var/www/phalcon-devtools/phalcon.local/vendor/stanislav-web/phalcon-uploader/src/Uploader/Helpers/Message.php' => array(39 => array(), 40 => array(), 41 => NULL, 42 => array()), '/var/www/phalcon-devtools/phalcon.local/vendor/stanislav-web/phalcon-uploader/src/Uploader/Validator.php' => array(36 => array(), 37 => array(), 38 => array(), 42 => array(), 44 => array(), 45 => array(), 46 => NULL, 48 => array(), 49 => NULL, 62 => array(), 63 => array(), 64 => array(), 68 => array(), 70 => array(), 71 => array(), 72 => NULL, 74 => array(), 75 => NULL, 88 => array(), 89 => array(), 90 => array(), 94 => array(), 96 => array(), 98 => array(), 99 => NULL, 101 => array(), 102 => NULL, 115 => array(), 116 => array(), 117 => array(), 121 => array(), 123 => array(), 125 => array(), 126 => NULL, 128 => array(), 129 => NULL, 142 => array(), 143 => array(), 144 => array(), 148 => array(), 150 => array(), 151 => array(), 152 => NULL, 154 => array(), 156 => array(), 157 => array(), 158 => NULL, 160 => array(), 161 => NULL), '/var/www/phalcon-devtools/phalcon.local/vendor/stanislav-web/phalcon-uploader/src/Uploader/Uploader.php' => array(67 => array(0 => 'Test\\Uploader\\UploaderTest::testConstructor'), 69 => array(), 71 => array(), 74 => array(0 => 'Test\\Uploader\\UploaderTest::testConstructor'), 77 => array(0 => 'Test\\Uploader\\UploaderTest::testConstructor'), 78 => array(0 => 'Test\\Uploader\\UploaderTest::testConstructor'), 87 => array(), 88 => NULL, 99 => array(), 102 => array(), 103 => array(), 114 => array(), 116 => array(), 118 => array(), 119 => array(), 121 => array(), 123 => array(), 125 => array(), 126 => NULL, 136 => array(), 138 => array(), 142 => array(), 146 => array(), 148 => array(), 149 => array(), 150 => array(), 151 => array(), 152 => array(), 153 => array(), 155 => array(), 157 => array(), 158 => NULL, 169 => array(), 171 => array(), 172 => array(), 173 => array(), 175 => array(), 176 => array(), 177 => array(), 178 => array(), 180 => array(), 181 => array(), 183 => array(), 184 => array(), 185 => array(), 187 => array(), 190 => array(), 192 => array(), 194 => array(), 195 => array(), 196 => array(), 197 => array(), 198 => array(), 199 => array(), 200 => array(), 202 => array(), 203 => NULL, 213 => array(), 215 => NULL, 224 => array(), 226 => NULL)));
$coverage->setTests(array('Test\\Uploader\\Helpers\\FormatTest::testBytes' => 0, 'Test\\Uploader\\Helpers\\MessageTest::testGet' => 0, 'Test\\Uploader\\UploaderTest::testConstructor' => 0));
$filter = $coverage->filter();
$filter->setBlacklistedFiles(array());
$filter->setWhitelistedFiles(array('/var/www/phalcon-devtools/phalcon.local/vendor/stanislav-web/phalcon-uploader/src/Uploader/Helpers/Format.php' => true, '/var/www/phalcon-devtools/phalcon.local/vendor/stanislav-web/phalcon-uploader/src/Uploader/Helpers/Message.php' => true, '/var/www/phalcon-devtools/phalcon.local/vendor/stanislav-web/phalcon-uploader/src/Uploader/Uploader.php' => true, '/var/www/phalcon-devtools/phalcon.local/vendor/stanislav-web/phalcon-uploader/src/Uploader/Validator.php' => true));
return $coverage;
开发者ID:stanislav-web,项目名称:phalcon-uploader,代码行数:9,代码来源:coverage.php

示例3: array

<?php

$coverage = new PHP_CodeCoverage();
$coverage->setData(array('/Users/stanislavmenshykh/Projects/phalcon-ulogin/src/ULogin/Init.php' => array(97 => array(0 => 'Test\\ULogin\\AuthTest::testDestroyedSession', 1 => 'Test\\ULogin\\InitTest::testConstructor'), 99 => array(0 => 'Test\\ULogin\\InitTest::testConstructor'), 101 => array(0 => 'Test\\ULogin\\InitTest::testConstructor'), 102 => array(0 => 'Test\\ULogin\\InitTest::testConstructor'), 103 => array(0 => 'Test\\ULogin\\InitTest::testConstructor'), 104 => array(0 => 'Test\\ULogin\\InitTest::testConstructor'), 106 => array(0 => 'Test\\ULogin\\InitTest::testConstructor'), 107 => array(0 => 'Test\\ULogin\\AuthTest::testDestroyedSession', 1 => 'Test\\ULogin\\InitTest::testConstructor'), 132 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 135 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 136 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 137 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 139 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 140 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 141 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 143 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 144 => NULL, 164 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 166 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 167 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 168 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 169 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 172 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 174 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 175 => NULL, 195 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 197 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 198 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 199 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 200 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 203 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 205 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 207 => NULL, 220 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 221 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 222 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 224 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 225 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 227 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 229 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 231 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 232 => NULL, 244 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 245 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 246 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 248 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 250 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 252 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 253 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 254 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 257 => array(0 => 'Test\\ULogin\\InitTest::testSetters'), 258 => NULL, 268 => array(0 => 'Test\\ULogin\\InitTest::testDestroyUser'), 269 => array(0 => 'Test\\ULogin\\InitTest::testDestroyUser'), 270 => array(0 => 'Test\\ULogin\\InitTest::testDestroyUser'), 271 => array(0 => 'Test\\ULogin\\InitTest::testDestroyUser'), 272 => array(0 => 'Test\\ULogin\\InitTest::testDestroyUser'), 273 => NULL, 274 => array(0 => 'Test\\ULogin\\InitTest::testDestroyUser'), 275 => NULL, 285 => array(0 => 'Test\\ULogin\\InitTest::testToken'), 287 => array(0 => 'Test\\ULogin\\InitTest::testToken'), 288 => array(0 => 'Test\\ULogin\\InitTest::testToken'), 289 => array(0 => 'Test\\ULogin\\InitTest::testToken'), 290 => array(0 => 'Test\\ULogin\\InitTest::testToken'), 293 => array(0 => 'Test\\ULogin\\InitTest::testToken'), 294 => NULL, 310 => array(0 => 'Test\\ULogin\\InitTest::testGetUser'), 312 => array(0 => 'Test\\ULogin\\InitTest::testGetUser'), 316 => array(0 => 'Test\\ULogin\\InitTest::testGetUser'), 317 => array(0 => 'Test\\ULogin\\InitTest::testGetUser'), 318 => array(0 => 'Test\\ULogin\\InitTest::testGetUser'), 321 => array(0 => 'Test\\ULogin\\InitTest::testGetUser'), 322 => array(0 => 'Test\\ULogin\\InitTest::testGetUser'), 323 => array(0 => 'Test\\ULogin\\InitTest::testGetUser'), 324 => array(0 => 'Test\\ULogin\\InitTest::testGetUser'), 326 => array(0 => 'Test\\ULogin\\InitTest::testGetUser'), 327 => NULL, 337 => array(0 => 'Test\\ULogin\\InitTest::testAuthorised'), 338 => array(0 => 'Test\\ULogin\\InitTest::testAuthorised'), 339 => array(0 => 'Test\\ULogin\\InitTest::testAuthorised'), 341 => array(0 => 'Test\\ULogin\\InitTest::testAuthorised'), 342 => NULL, 344 => array(0 => 'Test\\ULogin\\InitTest::testAuthorised'), 345 => NULL, 355 => array(0 => 'Test\\ULogin\\InitTest::testLogout'), 356 => array(0 => 'Test\\ULogin\\InitTest::testLogout'), 358 => array(0 => 'Test\\ULogin\\InitTest::testLogout'), 360 => NULL, 370 => array(0 => 'Test\\ULogin\\InitTest::testForm'), 372 => array(0 => 'Test\\ULogin\\InitTest::testForm'), 373 => array(0 => 'Test\\ULogin\\InitTest::testForm'), 374 => array(0 => 'Test\\ULogin\\InitTest::testForm'), 375 => array(0 => 'Test\\ULogin\\InitTest::testForm'), 376 => array(0 => 'Test\\ULogin\\InitTest::testForm'), 377 => array(0 => 'Test\\ULogin\\InitTest::testForm'), 378 => array(0 => 'Test\\ULogin\\InitTest::testForm'), 379 => array(0 => 'Test\\ULogin\\InitTest::testForm'), 381 => NULL), '/Users/stanislavmenshykh/Projects/phalcon-ulogin/src/ULogin/Auth.php' => array(41 => array(0 => 'Test\\ULogin\\AuthTest::testConstructor', 1 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 42 => array(0 => 'Test\\ULogin\\AuthTest::testConstructor'), 43 => NULL, 45 => array(0 => 'Test\\ULogin\\AuthTest::testConstructor', 1 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 46 => array(0 => 'Test\\ULogin\\AuthTest::testConstructor'), 47 => NULL, 49 => array(0 => 'Test\\ULogin\\AuthTest::testConstructor', 1 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 51 => array(0 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 52 => array(0 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 54 => array(0 => 'Test\\ULogin\\AuthTest::testConstructor'), 57 => array(0 => 'Test\\ULogin\\AuthTest::testConstructor', 1 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 58 => array(0 => 'Test\\ULogin\\AuthTest::testConstructor', 1 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 67 => array(0 => 'Test\\ULogin\\AuthTest::testSession', 1 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 70 => array(0 => 'Test\\ULogin\\AuthTest::testSession', 1 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 72 => array(0 => 'Test\\ULogin\\AuthTest::testSession', 1 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 73 => array(0 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 74 => array(0 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 76 => array(0 => 'Test\\ULogin\\AuthTest::testSession', 1 => 'Test\\ULogin\\AuthTest::testDestroyedSession'), 77 => NULL, 79 => array(0 => 'Test\\ULogin\\AuthTest::testSession'), 80 => NULL, 94 => array(0 => 'Test\\ULogin\\AuthTest::testGetUser'), 96 => array(0 => 'Test\\ULogin\\AuthTest::testGetUser'), 97 => array(0 => 'Test\\ULogin\\AuthTest::testGetUser'), 98 => array(0 => 'Test\\ULogin\\AuthTest::testGetUser'), 100 => array(0 => 'Test\\ULogin\\AuthTest::testGetUser'), 101 => NULL, 109 => array(0 => 'Test\\ULogin\\AuthTest::testLogout'), 110 => array(0 => 'Test\\ULogin\\AuthTest::testLogout'), 112 => array(0 => 'Test\\ULogin\\AuthTest::testLogout'), 113 => NULL), '/Users/stanislavmenshykh/Projects/phalcon-ulogin/src/ULogin/Parser.php' => array(25 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testMapArray'), 27 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testMapArray'), 28 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testMapArray'), 30 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testMapArray'), 34 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testMapArray'), 35 => NULL, 47 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testArrayResolve'), 49 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testArrayResolve'), 51 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testArrayResolve'), 53 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testArrayResolve'), 55 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testArrayResolve'), 58 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testArrayResolve'), 61 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testArrayResolve'), 63 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testArrayResolve'), 64 => NULL, 76 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 78 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 80 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 81 => NULL, 92 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 94 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 96 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 97 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 98 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 100 => array(0 => 'Test\\ULogin\\ParserTest::testStringResolve'), 101 => array(0 => 'Test\\ULogin\\ParserTest::testStringResolve'), 102 => array(0 => 'Test\\ULogin\\ParserTest::testStringResolve'), 103 => array(0 => 'Test\\ULogin\\ParserTest::testStringResolve'), 106 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 108 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 110 => NULL, 122 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 124 => array(0 => 'Test\\ULogin\\ParserTest::testStringResolve'), 126 => array(0 => 'Test\\ULogin\\ParserTest::testStringResolve'), 127 => NULL, 129 => array(0 => 'Test\\ULogin\\ParserTest::testMethods', 1 => 'Test\\ULogin\\ParserTest::testStringResolve'), 131 => NULL)));
$coverage->setTests(array('Test\\ULogin\\AuthTest::testConstructor' => 0, 'Test\\ULogin\\AuthTest::testSession' => 0, 'Test\\ULogin\\AuthTest::testLogout' => 0, 'Test\\ULogin\\AuthTest::testGetUser' => 0, 'Test\\ULogin\\AuthTest::testDestroyedSession' => 0, 'Test\\ULogin\\InitTest::testConstructor' => 0, 'Test\\ULogin\\InitTest::testSetters' => 0, 'Test\\ULogin\\InitTest::testGetUser' => 0, 'Test\\ULogin\\InitTest::testDestroyUser' => 0, 'Test\\ULogin\\InitTest::testToken' => 0, 'Test\\ULogin\\InitTest::testAuthorised' => 0, 'Test\\ULogin\\InitTest::testForm' => 0, 'Test\\ULogin\\InitTest::testLogout' => 0, 'Test\\ULogin\\ParserTest::testMethods' => 0, 'Test\\ULogin\\ParserTest::testMapArray' => 0, 'Test\\ULogin\\ParserTest::testArrayResolve' => 0, 'Test\\ULogin\\ParserTest::testStringResolve' => 0));
$filter = $coverage->filter();
$filter->setBlacklistedFiles(array('/private/var/folders/mj/djg9_yfd1r50n2b9_cn1mpbh0000gn/T/ide-phpunit.php' => true));
$filter->setWhitelistedFiles(array('/Users/stanislavmenshykh/Projects/phalcon-ulogin/src/ULogin/Auth.php' => true, '/Users/stanislavmenshykh/Projects/phalcon-ulogin/src/ULogin/Init.php' => true, '/Users/stanislavmenshykh/Projects/phalcon-ulogin/src/ULogin/Parser.php' => true));
return $coverage;
开发者ID:stanislav-web,项目名称:phalcon-ulogin,代码行数:9,代码来源:coverage.php


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