Browse files

in line with change from file_exists() to is_readable(), change from …

…NotFound to NotReadable
  • Loading branch information...
1 parent fc94c1a commit 92810fe0a031cef93fb337177c1d14b176489622 @pmjones pmjones committed Dec 29, 2011
View
2 src.php
@@ -2,5 +2,5 @@
require_once __DIR__ . '/src/Aura/Autoload/Loader.php';
require_once __DIR__ . '/src/Aura/Autoload/Exception.php';
require_once __DIR__ . '/src/Aura/Autoload/Exception/AlreadyLoaded.php';
-require_once __DIR__ . '/src/Aura/Autoload/Exception/NotFound.php';
+require_once __DIR__ . '/src/Aura/Autoload/Exception/NotReadable.php';
require_once __DIR__ . '/src/Aura/Autoload/Exception/NotDefined.php';
View
2 src/Aura/Autoload/Exception/NotFound.php → src/Aura/Autoload/Exception/NotReadable.php
@@ -15,4 +15,4 @@
* @package Aura.Autoload
*
*/
-class NotFound extends \Aura\Autoload\Exception {}
+class NotReadable extends \Aura\Autoload\Exception {}
View
4 src/Aura/Autoload/Loader.php
@@ -274,7 +274,7 @@ public function getLoaded()
*
* @return void
*
- * @throws Exception\NotFound when the file for the class or
+ * @throws Exception\NotReadable when the file for the class or
* interface is not found.
*
*/
@@ -302,7 +302,7 @@ public function load($spec)
// yes, throw an exception
$message = $spec . PHP_EOL
. implode(PHP_EOL, $this->tried_paths);
- throw new Exception\NotFound($message);
+ throw new Exception\NotReadable($message);
}
}
View
4 tests/Aura/Autoload/LoaderTest.php
@@ -78,7 +78,7 @@ public function testLoadMissing()
// missing in normal mode should throw exception
$autoloader->setMode(Loader::MODE_NORMAL);
- $this->setExpectedException('Aura\Autoload\Exception\NotFound');
+ $this->setExpectedException('Aura\Autoload\Exception\NotReadable');
$autoloader->load($class);
}
@@ -102,7 +102,7 @@ public function testLoadUndeclared()
}
/**
- * @expectedException \Aura\Autoload\Exception\NotFound
+ * @expectedException \Aura\Autoload\Exception\NotReadable
*/
public function testLoadNotInIncludePath()
{

0 comments on commit 92810fe

Please sign in to comment.