diff --git a/tests/test.php b/tests/test.php index 52b2914..7bef9d9 100644 --- a/tests/test.php +++ b/tests/test.php @@ -1,7 +1,7 @@ routes, TREES . 'blog.txt'); +writeRoutesToFile($r->dump(), TREES . 'blog.txt'); echoTitle("Starting blog lookups"); runIterations(10000, $r, $blog); runIterations(100000, $r, $blog); @@ -32,7 +32,7 @@ unset($blog); // Github lookups $r->clear(); $github = readAndAddRoutes(ROUTES . 'github.txt', $r); -writeRoutesToFile($r->routes, TREES . 'github.txt'); +writeRoutesToFile($r->dump(), TREES . 'github.txt'); echoTitle("Starting github lookups"); runIterations(10000, $r, $github); runIterations(100000, $r, $github); @@ -42,7 +42,7 @@ unset($github); // Big lookups $r->clear(); $big = readAndAddRoutes(ROUTES . 'big.txt', $r); -writeRoutesToFile($r->routes, TREES . 'big.txt'); +writeRoutesToFile($r->dump(), TREES . 'big.txt'); echoTitle("Starting big lookups"); runIterations(10000, $r, $big); runIterations(100000, $r, $big);