bluzphp/framework — pull request #19 by loginwashere (2012-12-08 22:27:02+00:00)
Title: Added some tests

Implemented some tests for Bluz\Db namespace classes. Added use namespace statements and removed require calls.

Db class need to be rewritten - db connect logic need to be moved to adapter classes that would implement db adapter interface - this way it would be posible to test db classes using db adapter mocks.

Moved tests into src/Bluz/Tests folder (inspired by Symfony), this way, I think, it would be easier to transfer these tests in to framework module/component tests (for example move existing Db test classes in to Bluz/Db folder and make it a separate repository and a dependancy/optional dependancy of Bluz framework).

Maybe we need some roadmap page - to know what framework tends to be in the future.

Also the other way to go is to do like zf2 - all tests are gathered in tests/ZendTest folder and ZendTest namespace is added to composer.json autoload section.

Personally, I prefer first variant - put tests closer to code.