Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

corrections proposed from PR feedback

  • Loading branch information...
commit 22bcde8ed26869b467ed6b7b17f8a54697530a80 1 parent 8f582eb
@lapistano authored
View
4 accepted/tests/Psr0_CompatibilityTest.php → accepted/tests/Psr0/CompatibilityTest.php
@@ -6,11 +6,11 @@
* @copyright 2011 by Bastian Feder
*
*/
-namespace figStandards\PSR0\Compatibility;
+namespace figStandards\accepted\tests\Psr0;
require __DIR__ . '/Psr0_Scanner.php';
-class psr0_CompatibilityTest extends \PHPUnit_Framework_TestCase
+class Psr0_CompatibilityTest extends \PHPUnit_Framework_TestCase
{
/**
* Contains the result of the directory scan.
View
8 accepted/tests/Psr0_Scanner.php → accepted/tests/Psr0/Scanner.php
@@ -7,7 +7,7 @@
*
*/
-namespace figStandards\PSR0\Compatibility;
+namespace figStandards\accepted\tests\Psr0;
class Psr0_Scanner
{
@@ -153,7 +153,8 @@ protected function initScanner()
*
* @param DirectoryScanner $scanner
*/
- protected function registerExclusions(\TheSeer\DirectoryScanner\DirectoryScanner $scanner) {
+ protected function registerExclusions(\TheSeer\DirectoryScanner\DirectoryScanner $scanner)
+ {
if (!empty($this->excludes)) {
$exclusions = explode(":", $this->excludes);
$scanner->setExcludes($exclusions);
@@ -165,7 +166,8 @@ protected function registerExclusions(\TheSeer\DirectoryScanner\DirectoryScanner
*
* @param DirectoryScanner $scanner
*/
- protected function registerInclusions(\TheSeer\DirectoryScanner\DirectoryScanner $scanner) {
+ protected function registerInclusions(\TheSeer\DirectoryScanner\DirectoryScanner $scanner)
+ {
if (!empty($this->includes)) {
$inclusions = explode(":", $this->includes);
$scanner->setIncludes($inclusions);
View
8 accepted/tests/README.md
@@ -25,7 +25,7 @@ Otherwise change just run *install.sh* in the *accepted/tests* directory and the
$> /bin/sh install.sh
-This clones the *DirectoryScanner* from github so a functional internet connection is mandatory for tihs action.
+This clones the *DirectoryScanner* from github so a functional internet connection is mandatory for this action.
After you ran *install.sh* you'll find the sources in the newly created *accepted/tests/vendor* directory.
Setting up
@@ -46,18 +46,18 @@ to configure the *DirectoryScanner*. Modify them to meet the requirements of you
* (optional) __Psr0_ScannerExclude__
is a colon separated set of patterns which directories/files are to be ignored when scanning.
You usually want to exclude the directories containing the tests and 3rd party source probably located in a
- vendor directory. This combines into the string shown in the floowing example:
+ vendor directory. This combines into the string shown in the folowing example:
*/vendor/*:*/Test/*
See [*DirectoryScanner*][3] on GitHub for further information.
To make PHPUnit aware of the PSR-0 Compataibility Testsuite you have to add the *Psr0_CompatibilityTest.php* to the
-*\<testsuite\>* section of your phpunit configuration. The examle assumes that the test file is in the original location
+*\<testsuite\>* section of your phpunit configuration. The example assumes that the test file is in the original location
after a checkout described as above.
- <file>../tests/fig-standards/accepted/tests/Psr0_CompatibilityTest.php</file>
+ <file>../tests/fig-standards/accepted/tests/Psr0/CompatibilityTest.php</file>
Dependencies
Please sign in to comment.
Something went wrong with that request. Please try again.