Skip to content

Commit

Permalink
Add MockeryExceptionInterface (#1217)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Apr 30, 2023
2 parents d168331 + 311c24d commit 213c4f9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
4 changes: 3 additions & 1 deletion library/Mockery/CountValidator/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

namespace Mockery\CountValidator;

class Exception extends \OutOfBoundsException
use Mockery\Exception\MockeryExceptionInterface;

class Exception extends \OutOfBoundsException implements MockeryExceptionInterface
{
}
4 changes: 3 additions & 1 deletion library/Mockery/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

namespace Mockery;

class Exception extends \UnexpectedValueException
use Mockery\Exception\MockeryExceptionInterface;

class Exception extends \UnexpectedValueException implements MockeryExceptionInterface
{
}
2 changes: 1 addition & 1 deletion library/Mockery/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Mockery\Exception;

class BadMethodCallException extends \BadMethodCallException
class BadMethodCallException extends \BadMethodCallException implements MockeryExceptionInterface
{
private $dismissed = false;

Expand Down
2 changes: 1 addition & 1 deletion library/Mockery/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

namespace Mockery\Exception;

class InvalidArgumentException extends \InvalidArgumentException
class InvalidArgumentException extends \InvalidArgumentException implements MockeryExceptionInterface
{
}
11 changes: 11 additions & 0 deletions library/Mockery/Exception/MockeryExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

namespace Mockery\Exception;

use Throwable;

interface MockeryExceptionInterface extends Throwable
{
}
2 changes: 1 addition & 1 deletion library/Mockery/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

namespace Mockery\Exception;

class RuntimeException extends \Exception
class RuntimeException extends \Exception implements MockeryExceptionInterface
{
}

0 comments on commit 213c4f9

Please sign in to comment.