Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function getTests() {
- $tests = parent::getTests();
- $testMethods = array_udiff($tests, $this->methods, 'strcasecmp');
- if (!isset($this->testMethods) || empty($this->testMethods)) {
- $this->testMethods = $testMethods;
- }
- if (!is_array($this->testMethods)) {
- $this->testMethods = array($this->testMethods);
- }
- if (isset($this->skipSetup) && $this->skipSetup) {
- $tests = array_udiff($tests, array('start', 'end'), 'strcasecmp');
- }
- if (empty($this->testMethods)) {
- return $tests;
- }
- $removeMethods = array_udiff($testMethods, $this->testMethods, 'strcasecmp');
- $tests = array_udiff($tests, $removeMethods, 'strcasecmp');
- $skipped = array_udiff($testMethods, $this->testMethods, 'strcasecmp');
- foreach ($skipped as $skip) {
- $this->_reporter->paintSkip(sprintf(__('Skipped entire test method: %s', true), $skip));
- }
- return $tests;
- }
Add Comment
Please, Sign In to add comment