Page MenuHomeDevCentral

D319.diff
No OneTemporary

D319.diff

diff --git a/tests/Phabricator/PhabricatorAPIExceptionTest.php b/tests/Phabricator/PhabricatorAPIExceptionTest.php
new file mode 100644
--- /dev/null
+++ b/tests/Phabricator/PhabricatorAPIExceptionTest.php
@@ -0,0 +1,29 @@
+<?php
+
+namespace Nasqueron\Notifications\Tests\Phabricator;
+
+use Nasqueron\Notifications\Phabricator\PhabricatorAPIException;
+use Nasqueron\Notifications\Tests\TestCase;
+
+class PhabricatorAPIExceptionTest extends TestCase {
+
+ /**
+ * @var \Nasqueron\Notifications\Phabricator\PhabricatorAPIException
+ */
+ private $exception;
+
+ public function setUp () {
+ $this->exception = new PhabricatorAPIException(
+ 100,
+ "Lorem ipsum dolor"
+ );
+ }
+
+ public function testGetCode () {
+ $this->assertSame(100, $this->exception->getCode());
+ }
+
+ public function testGetMessage () {
+ $this->assertSame("Lorem ipsum dolor", $this->exception->getMessage());
+ }
+}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 19:12 (19 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2308426
Default Alt Text
D319.diff (979 B)

Event Timeline