What ever happened to PHPUnit's Database Extension?

Viewed 8054

After upgrading to PHPUnit v > 3.5 (I forgot) I kept on getting this error because I imported PHPUnit/Extensions/Database/TestCase.php:

require_once(...): failed to open stream: No such file or directory

I peeked at the PHPUnit folder in my /usr/share/php folder only to find out it isn't there anymore.

In fact a look at the official source code reveals that it seems it has been removed.

So for now I am using version 3.4.15. But it's not ideal as assertions on the table are still not supported. For now I am only able to use the CLEAN_INSERT feature which populates my database.

6 Answers

For those that are running macports, you will have to install the php5-unit-db port to get the needed files. This did help me start looking in the right direction. This dep was not installed by default.

Related