Eclipse PDT & PHPUnit?

See Eclipse Plugin PHP Tool Integration (PTI) which provides integration of following features for Eclipse: PHP_CodeSniffer PHPUnit PHP Depend PHP Copy/Paste Detector Update sites (Help – Install Software – Add …): Latest stable release: http://www.phpsrc.org/eclipse/pti/ Development version: http://www.phpsrc.org/eclipse/pti-dev/

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)