Running phpunit tests using HHVM (HipHop)

前端 未结 3 1378
误落风尘
误落风尘 2021-02-20 16:29

I am trying to run PHPUnit unit tests via HHVM on a virtual Ubuntu 12.04 (64-bit Server) install. The tests usually run using a phpunit.xml file located in my tests directory, w

3条回答
  •  情话喂你
    2021-02-20 17:09

    A simple workaround is to configure HHVM to include the PEAR libraries in it's search paths.

    I added this to my config.hdf's Server section:

        IncludeSearchPaths {
            forphpunit = /usr/lib/php/
        }
    

    and then ran phpunit as:

    hhvm -c ~/config.hdf /usr/bin/phpunit --bootstrap bootstrap.php MyTests.php
    

提交回复
热议问题