chriskite / phactory

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

Inflector.php conflicts with existing Inflector.php in CakePHP #10

Closed SuperWes closed 12 years ago

SuperWes commented 13 years ago

I'm evaluating Phactory to create PHPUnit tests on a project that uses a pre-Cake 2.0 version CakePHP. When I first pulled it down I was getting errors that the Inflector class conflicts with the Inflector class in CakePHP. This made it impossible to use the pear'd version.

I've renamed the class locally to Inflector_p for evaluation purposes, but it might be worth adding a namespace or changing the name to something less common to avoid issues like this.

ramsey commented 12 years ago

Pull request #17, if accepted, would resolve this issue.

jimbojsb commented 12 years ago

Closed, per @ramsey above