Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MockeryExceptionInterface #1217

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
{
}