chriskite / phactory

A Database Factory for PHP Unit Tests
http://phactory.org
MIT License
140 stars 39 forks source link

tests don't run on PHPUnit 3.5.13 #7

Open jblotus opened 13 years ago

jblotus commented 13 years ago

All tests are generating errors like this:

1) Phactory_Association_ManyToManyTest::testGuessFromColumn RuntimeException: PHP Notice: Constant PHACTORY_PATH already defined in C:\Site s\phactory_branch\phactory\tests\bootstrap.php on line 2 PHP Stack trace: PHP 1. {main}() -:0 PHP 2. require_once() -:1 PHP 3. require_once() C:\Users\Owner\AppData\Local\Temp\PHPF57.tmp:43 PHP 4. define() C:\Sites\phactory_branch\phactory\tests\bootstrap.php:2

Is there a recommended config to get these tests running? Also there are some deprecated warnings generated by latest PHPUnit.

jblotus commented 13 years ago

wanted to link to a complete dump http://pastebin.com/mxtYsgp0

jimbojsb commented 12 years ago

Does @rasmey's pull request to use namespaces fix this issue for you?