I want to contribute to a guys plugin (TimberWp). I'd like to do it with tests. his plugin has a test dir that looks just like the wp-cli scaffolded dir. all v standard.
Iv'e managed to get as far as installing wp-cli, phpunit (already had that) and I got past the couldn't connect to mysql issue (make it use the mamp php5.4 version)
Warning: require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory in /Users/willbarker/sites/kindling/wp-unit-tests/includes/bootstrap.php on line 7
So i made sure my path to phpunit is set in my php.ini
timber git:(master) ✗ php -r 'foreach (explode(":", get_include_path()) as $path) echo $path . PHP_EOL;' . /Applications/MAMP/bin/php/php5.4.4/lib/php /usr/local/bin/phpunit
So i am out of ideas how to get phpunit working with WP. Have i got the right version of phpunit? its a phar, is that why i can't include files from it? I'm obviously confused / running into the extent of my knowledge. Here is my installed phpunit version:
➜ timber git:(master) ✗ phpunit --which PHPUnit 3.7.28 by Sebastian Bergmann.