We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42431
    • 4 Posts
    Is there any documentation on how to run unit test from the _build\test directory of MODX development branch?

    I've installed PHPUnit but executing phpunit command from this directory prouces only errors eg:
    D:\...\_build\test>phpunit
    PHPUnit 3.7.19 by Sebastian Bergmann.
    
    Configuration read from D:\...\_build\test\phpunit.xml
    
    .EEEESEEEEEEEEEEFFFFESFPHP Fatal error:  Call to a member function remove() on a non-object in D:\...\_build\test\Tests\Model\Element\modSnippetTest.php on line 56
    
    Fatal error: Call to a member function remove() on a non-object in D:\...\_build\test\Tests\Model\Element\modSnippetTest.php on line 56
    


    Behavior of phpunit under Linux is the same. ):