Skip to content

Commit

Permalink
Changed exception thrown by __get from \Exception to \OutOfBoundsExce…
Browse files Browse the repository at this point in the history
…ption.
  • Loading branch information
rotexdegba committed May 3, 2016
1 parent cbbdac7 commit 22ecb4c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/RendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function testExceptionMessageWhenNonStringFileNameIsPassedToConstructor()
//if the constructor call above did not throw an exception, then this test should fail
$message = __FUNCTION__.'() : Expected exception not thrown when creating'
. ' File Renderer with an invalid (non-string) file name';
throw new Exception($message);
throw new \Exception($message);

} catch (\Exception $e) {

Expand Down Expand Up @@ -244,7 +244,7 @@ public function testExceptionMessageWhenNonExistentPropertyThatsNeverBeenSetIsAc
//if the call to __get above did not throw an exception, then this test should fail
$message = __FUNCTION__. '() : Expected exception not thrown when accessing non'
. ' existent property.';
throw new Exception($message);
throw new \Exception($message);

} catch (\Exception $e) {

Expand All @@ -259,7 +259,7 @@ public function testExceptionMessageWhenNonExistentPropertyThatsNeverBeenSetIsAc
//then this test should fail
$message = __FUNCTION__. '() : Expected exception not thrown when accessing non'
. ' existent property.';
throw new Exception($message);
throw new \Exception($message);

} catch (\Exception $e) {

Expand Down Expand Up @@ -542,7 +542,7 @@ public function testExceptionMessageWhenNonStringFileNameIsPassedToLocateFile()
//if the call to locateFile above did not throw an exception, then this test should fail
$message = __FUNCTION__. '(): Expected exception not thrown when locating file with an'
. ' invalid (non-string) file name';
throw new Exception($message);
throw new \Exception($message);

} catch (\Exception $e) {

Expand Down Expand Up @@ -588,7 +588,7 @@ public function testExceptionMessageWhenNonExistentFileNameIsPassedToRenderToStr
//if the call to locateFile above did not throw an exception, then this test should fail
$message = __FUNCTION__. '(): Expected exception not thrown when rendering file with an'
. ' invalid (non-string) file name';
throw new Exception($message);
throw new \Exception($message);

} catch (\Exception $e) {

Expand All @@ -613,7 +613,7 @@ public function testExceptionMessageWhenNonStringFileNameIsPassedToRenderToStrin
//if the call to locateFile above did not throw an exception, then this test should fail
$message = __FUNCTION__. '(): Expected exception not thrown when rendering file with an'
. ' invalid (non-string) file name';
throw new Exception($message);
throw new \Exception($message);

} catch (\Exception $e) {

Expand Down

0 comments on commit 22ecb4c

Please sign in to comment.