MarkBasedTest.php 523 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace FastRoute\Dispatcher;
  3. class MarkBasedTest extends DispatcherTest
  4. {
  5. public function setUp()
  6. {
  7. preg_match('/(*MARK:A)a/', 'a', $matches);
  8. if (!isset($matches['MARK'])) {
  9. $this->markTestSkipped('PHP 5.6 required for MARK support');
  10. }
  11. }
  12. protected function getDispatcherClass()
  13. {
  14. return 'FastRoute\\Dispatcher\\MarkBased';
  15. }
  16. protected function getDataGeneratorClass()
  17. {
  18. return 'FastRoute\\DataGenerator\\MarkBased';
  19. }
  20. }