vlucas / Spot

[DEPRECATED - use v2] Simple DataMapper ORM for PHP 5.3+
75 stars 14 forks source link

Remove require of autoload from config and add into phpunit test init script #61

Closed psamatt closed 11 years ago

psamatt commented 11 years ago

Remove require of autoload from config.php and stuck it in the phpunit init.php to load Spot classes solely for unit testing only. Composer should autoload the Spot files otherwise.

-Also Added ignore of composer.lock

vlucas commented 11 years ago

This works. The original reason I had the "path trickery" hack in there was so I could debug and fix issues in Spot while it was cloned from source as a composer dependency (install --from-source). I would fix issues with spot, run the tests, and commit directly from inside the project using it. I don't think I'll have to be doing that anymore, and it was always a special case anyways. :+1: