elblinkin/PHPUnit-CodeSniffer — pull request #1 by edorian (2011-10-13 16:28:23+00:00)
Title: Remove naming convention dependency where possible

When first running your sniffs i was running into A LOT of errors like this one:

> Notice: Undefined offset: 1 in /home/edo/Desktop/PHP/phpunit-dev/PHPUnit-CodeSniffer/PHPUnitStandard/Sniffs/Testing/TestOrProviderIsPublicSniff.php on line 29

That happens because the coding standard expects the tests to be 'Zend underscore style' named in `tests/phpunit`.

Our tests are located in .../tests/unit/.. (as in sebastians bankaccount example) so it didn't work out and since it was not checked if the preg_match matched it lead to the notices.

If've tried to clean this up a little bit without breaking anything or removing behavior.

Should you decide to pull this I'd add a "only one class per file" rule just for good measure and to make sure the other sniffs still work well.