From c30d1d03bd31d3b4199fe2b8972438baaadb5359 Mon Sep 17 00:00:00 2001 From: Jeremy Kendall Date: Tue, 3 Sep 2013 08:10:46 -0500 Subject: [PATCH] Adds and implements QueryAuthException interface --- .../Exception/QueryAuthException.php | 12 ++++++++++ .../Exception/SignatureMissingException.php | 2 +- .../Exception/TimeOutOfBoundsException.php | 2 +- .../Exception/QueryAuthExceptionTest.php | 24 +++++++++++++++++++ 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 src/QueryAuth/Exception/QueryAuthException.php create mode 100644 tests/QueryAuth/Tests/Exception/QueryAuthExceptionTest.php diff --git a/src/QueryAuth/Exception/QueryAuthException.php b/src/QueryAuth/Exception/QueryAuthException.php new file mode 100644 index 0000000..a8cd430 --- /dev/null +++ b/src/QueryAuth/Exception/QueryAuthException.php @@ -0,0 +1,12 @@ +assertInstanceOf('QueryAuth\Exception\SignatureMissingException', $e); + $this->assertInstanceOf('QueryAuth\Exception\QueryAuthException', $e); + } + + public function testTimeOutOfBoundsException() + { + $e = new TimeOutOfBoundsException(); + $this->assertInstanceOf('QueryAuth\Exception\TimeOutOfBoundsException', $e); + $this->assertInstanceOf('QueryAuth\Exception\QueryAuthException', $e); + } +}