eb6d2af1bed5786a293f836cfc88a5df245e932a
[ptitvelo/web/www.git] / www / plugins-dist / compresseur / lib / csstidy / testing / unit-tests / class.csstidy_harness.php
1 <?php
2
3 /**
4 * Base test harness for CSSTidy, please make all tests inherit from this.
5 */
6 class csstidy_harness extends UnitTestCase
7 {
8 /**
9 * Modified testing algorithm that allows a single test method to be
10 * prefixed with __only in order to make it the only one run.
11 */
12 function getTests() {
13 // __onlytest makes only one test get triggered
14 foreach (get_class_methods(get_class($this)) as $method) {
15 if (strtolower(substr($method, 0, 10)) == '__onlytest') {
16 return array($method);
17 }
18 }
19 return parent::getTests();
20 }
21 }