Relative Content

Tag Archive for phpunit

Unit-testing functions without business logic (only checks) [duplicate]

This question already has answers here: Is it useful to unit test methods where the only logic is guards? (5 answers) Closed 11 years ago. My team is trying to find out the best way to test one of our components; the main scope is to check if the user/actor has the right to complete […]

Unit Test code generation

We have a project that was written over a period of 2 years, but has a poorly designed architecture and not unit tests.

When running PHPUnit tests – is it common to use a separate database for testing?

I’m running tests from the same database as I use in development. I recall using Rails and I used a separate database for testing (mainly coz the tutorial I was going by said so). Made sense though. I was wondering it this was the common way to do things or whether there was an alternative. Can anyone shed a little light on this?