squizlabs/PHP_CodeSniffer — pull request #201 by Konafets (2014-04-14 07:39:40+00:00)
Title: Make the tests running under PHPUnit 4.0.x

Since version 4.0.x PHPUnit will be distributed as a PHAR file via PEAR[1]. This means all the dependencies in form of several files are bundled into one single file. This break any require statements. As you can see at [2], PHPUnit comes with an autoloader which makes any require statement obsolete anyway.

This change fixes the error "Warning: require_once(PHPUnit/Framework/TestSuite.php): failed to open stream: No such file or directory in /Volumes/HDD/Users/sok/Development/PHP/PHP_CodeSniffer/tests/TestSuite.php on line 17"

[1] https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.0.0#obtaining-phpunit-40
[2] https://github.com/sebastianbergmann/phpunit/issues/1173