Skip to content

Commit

Permalink
Merge pull request enjoping#16 from NielsdeBlaauw/patch-1
Browse files Browse the repository at this point in the history
Use PHP Exception instead of PHPUnit Exception class.
  • Loading branch information
atimmer authored Mar 16, 2021
2 parents 286e601 + 4252776 commit 71943c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DXFighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use DXFighter\lib\Polyline;
use DXFighter\lib\Spline;
use DXFighter\lib\Text;
use PHPUnit\Framework\Exception;

/**
* Returns the class name, used for auto loading libraries
Expand Down Expand Up @@ -298,7 +297,7 @@ public function saveAs($fileName) {

private function read($path, $move = [0,0,0], $rotate = 0) {
if (!file_exists($path) || !filesize($path)) {
throw new Exception('The path to the file is either invalid or the file is empty');
throw new \Exception('The path to the file is either invalid or the file is empty');
}
$content = file_get_contents($path);
$lines = preg_split ('/$\R?^/m', $content);
Expand Down

0 comments on commit 71943c3

Please sign in to comment.