4,461
edits
→Name the application: add an application key |
|||
Line 134: | Line 134: | ||
===== For unit testing ===== | ===== For unit testing ===== | ||
For compatibility reasons, it's better to use the composer-installed phpunit package. You can do this by running <code>$ composer update --dev</code> which will install phpunit package automatically. You may also want to create a symlink to it. This example creates a phpunit.sanban symlink which you can use for this particular instance. | |||
<div class="cli"> | <div class="cli"> | ||
<span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span><span style="color:blue;"> | <span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span><span style="color:blue;">/srv/www/sanban</span><span style="color:#cccccc;"> | ||
$ <b class="color:white;"> | $ <b class="color:white;">chmod u+x vendor/phpunit/phpunit/phpunit</b> | ||
$ <b class="color:white;">ln -s /srv/www/sanban/vendor/phpunit/phpunit/phpunit ~/bin/phpunit.sanban</b> | |||
</span> | </span> | ||
</div> | </div> |