PHPUnit -setUp() – does it run before and after each test case?

setUp() runs before every single test method, tearDown() runs after each test method. PHPUnit Manual – Chapter 4 Fixures: Before a test method is run, a template method called setUp() is invoked … Once the test method has finished running, whether it succeeded or failed, another template method called tearDown() is invoked See https://phpunit.de/manual/current/en/fixtures.html

Switch php versions on commandline ubuntu 16.04

Interactive switching mode sudo update-alternatives –config php sudo update-alternatives –config phar sudo update-alternatives –config phar.phar Manual Switching From PHP 5.6 => PHP 7.1 Default PHP 5.6 is set on your system and you need to switch to PHP 7.1. Apache: $ sudo a2dismod php5.6 $ sudo a2enmod php7.1 $ sudo service apache2 restart Command Line: … Read more