Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fitler] Adding initial tests for Filter Rules [Tests] Adding bootstrap and ClassLoader [DMS] Fixing vendors
- Loading branch information
Showing
7 changed files
with
61 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
<?php | |||
|
|||
namespace DMS\Filter\Exception; | |||
|
|||
class FilterException extends \RuntimeException | |||
{ | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
<?php | |||
|
|||
namespace DMS\Filter\Exception; | |||
|
|||
class InvalidOptionsException extends RuleOptionsException | |||
{ | |||
|
|||
} | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
<?php | |||
|
|||
namespace DMS\Filter\Exception; | |||
|
|||
class MissingOptionsException extends RuleOptionsException | |||
{ | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
<?php | |||
|
|||
namespace DMS\Filter\Exception; | |||
|
|||
class RuleDefinitionException extends FilterException | |||
{ | |||
|
|||
} | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,21 @@ | |||
<?php | |||
|
|||
namespace DMS\Filter\Exception; | |||
|
|||
class RuleOptionsException extends FilterException | |||
{ | |||
private $options; | |||
|
|||
public function __construct($message, array $options) | |||
{ | |||
parent::__construct($message); | |||
|
|||
$this->options = $options; | |||
} | |||
|
|||
public function getOptions() | |||
{ | |||
return $this->options; | |||
} | |||
} | |||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters