extensions_tests.php 774B

1234567891011121314151617181920212223
  1. <?php
  2. // $Id: extensions_tests.php 1643 2008-01-22 20:50:23Z pp11 $
  3. require_once(dirname(__FILE__) . '/../autorun.php');
  4. require_once(dirname(__FILE__) . '/../collector.php');
  5. class ExtensionsTests extends TestSuite {
  6. function skip() {
  7. $this->skipIf(version_compare(phpversion(), '5', '<'),
  8. 'Many extensions only work with PHP5 and above');
  9. }
  10. function ExtensionsTests() {
  11. $this->TestSuite('Extension tests for SimpleTest ' . SimpleTest::getVersion());
  12. $nodes = new RecursiveDirectoryIterator(dirname(__FILE__).'/../extensions/');
  13. foreach(new RecursiveIteratorIterator($nodes) as $node) {
  14. if (preg_match('/test\.php$/', $node->getFilename())) {
  15. $this->addFile($node->getPathname());
  16. }
  17. }
  18. }
  19. }
  20. ?>