Tray: Difference between revisions

Jump to navigation Jump to search
349 bytes added ,  26 February 2015
→‎Name the application: add an application key
Line 134: Line 134:
===== For unit testing =====
===== For unit testing =====


It's also good idea to install PHPUnit, especially if you're interested in taking the TDD approach to development.
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;">~/sanban</span><span style="color:#cccccc;">
<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;">sudo apt-get install phpunit</b>
$ <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>

Navigation menu