php-fig/fig-standards — pull request #7 by lapistano (2011-10-31 08:49:55+00:00)
Title: Compatibility tests

This is a test suite to verify the compatibility of a project structure to the PSR-0 standard.
It is supposed to act as an acceptance test. The test suite can be run manually or in the matter of continuous integration.
The suite is splitted mainly into two classes, the
* _Psr_Scanner_ which scans the configured project source directory recursively and cumulates information like file name, class name, namespace, and permission errors. Since there is an necessity to crawl the directory tree for this, the scanner has a dependency to a directory scanner. I pretty picked the one provided by [Arne Blankerts][1]. Since there is no standardized interface for such a scanner I did not take the effort and made it easily exchangeable. But I'd be happy to do this some when else.
* _psr0_CompatibilityTest_ which is the actual test suite. Within this each found and readable file is tested against the rules defined by the PSR-0 standard. The provided [*autoload()*][2] function is used to ensure this.

Furthermore I propose to split the test suite into a separate github repository. This would make the integration into a 3rd party project much easier.

looking forward to hearing from you.
Bastian

[1]: https://github.com/theseer/DirectoryScanner
[2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md