diff --git a/tests/segment.php b/tests/segment.php index a2dd520..b367d89 100644 --- a/tests/segment.php +++ b/tests/segment.php @@ -8,6 +8,11 @@ The requests are randomly picked from the array of routes. */ +// if there's a flag, reset the opcache +if (in_array('-f', $argv)) { + opcache_reset(); +} + require_once 'tools.php'; $r = new SegmentRouter(); diff --git a/tests/simple.php b/tests/simple.php index 6e66916..72f3aa8 100644 --- a/tests/simple.php +++ b/tests/simple.php @@ -1,5 +1,18 @@