Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4060964
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1001 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/tests/Phabricator/PhabricatorAPIExceptionTest.php b/tests/Phabricator/PhabricatorAPIExceptionTest.php
new file mode 100644
index 0000000..ec42555
--- /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
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Jan 28, 09:14 (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2380243
Default Alt Text
(1001 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment