Symfony unit testing
Moderator: General Moderators
Symfony unit testing
I'm about to quote for a piece of work which the client has specified should be done in CakePHP. The client has also specified that unit testing must be done. I know the Symfony framework has unit testing 'built in' as it were. Is this the case with CakePHP or would I have to use PHPUnit?
Re: Symfony unit testing
From what I heard the preferred unit testing framework for cake is SimpleTest.
Re: Symfony unit testing
The advantage of PHPUnit is running parts of your tests. When your app is a few months old with a few hundred or thousand tests, it can take minutes for the tests, instead of the desired seconds. PHPUnit lets you run individual tests, all tests in a given file, all test files in a given directory (recursively). SimpleTest is just that, too simple for this need.
Using the same testing framework as your MVC framework is a novel idea, but in practice you don't really need to run all those tests at the same time, so it wouldn't matter if their unit tests weren't interoperable.
Using the same testing framework as your MVC framework is a novel idea, but in practice you don't really need to run all those tests at the same time, so it wouldn't matter if their unit tests weren't interoperable.
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: Symfony unit testing
Yes, and there's an entire section in manual about itWeirdan wrote:From what I heard the preferred unit testing framework for cake is SimpleTest.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.