Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F7806165
D319.id755.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
931 B
Referenced Files
None
Subscribers
None
D319.id755.diff
View Options
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,26 @@
+<?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 testException () {
+ $this->assertSame(100, $this->exception->getCode());
+ $this->assertSame("Lorem ipsum dolor", $this->exception->getMessage());
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 4, 05:57 (3 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2629498
Default Alt Text
D319.id755.diff (931 B)
Attached To
Mode
D319: Tests for PhabricatorAPIException
Attached
Detach File
Event Timeline
Log In to Comment