Permalink
Browse files

Corrected PSR-0 compatibility of the test suite

  • Loading branch information...
lapistano committed Oct 31, 2011
1 parent 3b84770 commit a4cc2147b929a9719d43ea7c06071ac10e8f2ab0
Showing with 3 additions and 3 deletions.
  1. +1 −1 accepted/tests/Psr0/CompatibilityTest.php
  2. +2 −2 accepted/tests/Psr0/Scanner.php
@@ -49,7 +49,7 @@ public function testPsr0Compatability($filename, $classname)
{
$this->assertEquals(
$this->normalizeFilename($filename),
- Psr0_Scanner::translateClassToFilename($classname),
+ Scanner::translateClassToFilename($classname),
'The classname does not translate correctly into a PSR-0 compatible filename.'
);
}
@@ -131,10 +131,10 @@ protected function parseFile($file)
protected function initScanner()
{
if(! class_exists('\TheSeer\DirectoryScanner\DirectoryScanner', true)) {
- $dirScanner = __DIR__ . '/vendor/TheSeer/DirectoryScanner/autoload.php';
+ $dirScanner = __DIR__ . '/../vendor/TheSeer/DirectoryScanner/autoload.php';
if (!file_exists($dirScanner)) {
throw new \BadFunctionCallException(
- 'Cannot find directory scanner mandatory for PSR-0 cpmatibility tests. '.
+ 'Cannot find directory scanner mandatory for PSR-0 compatibility tests. '.
'Please run install.sh in the test root directory.'
);
}

0 comments on commit a4cc214

Please sign in to comment.