facebook/hhvm — pull request #3428 by GrahamCampbell (2014-08-11 21:27:42+00:00)
Title: Updated fastroute tests to v0.2.0

This uncovers some issues:
```
1) FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches with data set #2 ('GET', '/user/rdlowrey', Closure$FastRoute\Dispatcher\DispatcherTest::provideFoundDispatchCases;434883760#3, 'handler2', array('rdlowrey'))

RUN TEST FILE: cd /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testqIDsQM --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug -c /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/phpunit.xml --filter 'FastRoute\\Dispatcher\\MarkBasedTest::testFoundDispatches with data set #2'

array_keys() expects parameter 1 to be an array or collection

/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:46
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:19
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/test/Dispatcher/DispatcherTest.php:34

2) FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches with data set #3 ('GET', '/user/12345', Closure$FastRoute\Dispatcher\DispatcherTest::provideFoundDispatchCases;434883760#3, 'handler1', array('12345'))

RUN TEST FILE: cd /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testqIDsQM --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug -c /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/phpunit.xml --filter 'FastRoute\\Dispatcher\\MarkBasedTest::testFoundDispatches with data set #3'

array_keys() expects parameter 1 to be an array or collection

/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:46
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:19
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/test/Dispatcher/DispatcherTest.php:34

3) FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches with data set #4 ('GET', '/user/NaN', Closure$FastRoute\Dispatcher\DispatcherTest::provideFoundDispatchCases;434883760#3, 'handler2', array('NaN'))

RUN TEST FILE: cd /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testqIDsQM --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug -c /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/phpunit.xml --filter 'FastRoute\\Dispatcher\\MarkBasedTest::testFoundDispatches with data set #4'

array_keys() expects parameter 1 to be an array or collection

/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:46
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:19
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/test/Dispatcher/DispatcherTest.php:34

4) FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches with data set #5 ('GET', '/user/rdlowrey/12345', Closure$FastRoute\Dispatcher\DispatcherTest::provideFoundDispatchCases;434883760#3, 'handler0', array('rdlowrey', '12345'))

RUN TEST FILE: cd /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testqIDsQM --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug -c /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/phpunit.xml --filter 'FastRoute\\Dispatcher\\MarkBasedTest::testFoundDispatches with data set #5'

array_keys() expects parameter 1 to be an array or collection

/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:46
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:19
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/test/Dispatcher/DispatcherTest.php:34

5) FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches with data set #6 ('GET', '/user/12345.svg', Closure$FastRoute\Dispatcher\DispatcherTest::provideFoundDispatchCases;434883760#4, 'handler2', array('12345', 'svg'))

RUN TEST FILE: cd /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testqIDsQM --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug -c /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/phpunit.xml --filter 'FastRoute\\Dispatcher\\MarkBasedTest::testFoundDispatches with data set #6'

array_keys() expects parameter 1 to be an array or collection

/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:46
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:19
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/test/Dispatcher/DispatcherTest.php:34

6) FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches with data set #7 ('HEAD', '/user/rdlowrey', Closure$FastRoute\Dispatcher\DispatcherTest::provideFoundDispatchCases;434883760#5, 'handler0', array('rdlowrey'))

RUN TEST FILE: cd /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testqIDsQM --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug -c /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/phpunit.xml --filter 'FastRoute\\Dispatcher\\MarkBasedTest::testFoundDispatches with data set #7'

array_keys() expects parameter 1 to be an array or collection

/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:46
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:19
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/test/Dispatcher/DispatcherTest.php:34

7) FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches with data set #8 ('HEAD', '/user/rdlowrey/1234', Closure$FastRoute\Dispatcher\DispatcherTest::provideFoundDispatchCases;434883760#5, 'handler1', array('rdlowrey', '1234'))

RUN TEST FILE: cd /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testqIDsQM --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug -c /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/phpunit.xml --filter 'FastRoute\\Dispatcher\\MarkBasedTest::testFoundDispatches with data set #8'

array_keys() expects parameter 1 to be an array or collection

/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:46
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:19
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/test/Dispatcher/DispatcherTest.php:34

8) FastRoute\Dispatcher\MarkBasedTest::testMethodNotAllowedDispatches with data set #2 ('DELETE', '/user/rdlowrey/42', Closure$FastRoute\Dispatcher\DispatcherTest::provideMethodNotAllowedDispatchCases;434883760#3, array('GET', 'POST', 'PUT', 'PATCH'))

RUN TEST FILE: cd /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testqIDsQM --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug -c /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/phpunit.xml --filter 'FastRoute\\Dispatcher\\MarkBasedTest::testMethodNotAllowedDispatches with data set #2'

array_keys() expects parameter 1 to be an array or collection

/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:46
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:19
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/test/Dispatcher/DispatcherTest.php:57
```