diff options
-rw-r--r-- | src/Bridge.php | 2 | ||||
-rw-r--r-- | test/BridgeTest.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Bridge.php b/src/Bridge.php index ba6ccc8..0125363 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -107,7 +107,7 @@ class Bridge { $count = $this->db->exec($sql); if ($count != 1) { - throw new Exception('Failed to delete message id: ' . $messageId); + throw new Exception('Failed to delete post id: ' . $postId); } } diff --git a/test/BridgeTest.php b/test/BridgeTest.php index eabcabe..8aaba04 100644 --- a/test/BridgeTest.php +++ b/test/BridgeTest.php @@ -177,8 +177,8 @@ class BridgeTest extends PHPUnit_Framework_TestCase { public function providerUnregisterPost() { return array( array(null, 'Exception'), - array(1, 'Exception'), - array(2, null), + array(0, 'Exception'), + array(1, null), ); } |