Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3945027
D275.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
736 B
Referenced Files
None
Subscribers
None
D275.id.diff
View Options
diff --git a/tests/Analyzers/GitHub/GitHubPayloadAnalyzerTest.php b/tests/Analyzers/GitHub/GitHubPayloadAnalyzerTest.php
--- a/tests/Analyzers/GitHub/GitHubPayloadAnalyzerTest.php
+++ b/tests/Analyzers/GitHub/GitHubPayloadAnalyzerTest.php
@@ -26,6 +26,21 @@
}
///
+ /// Test constructor
+ ///
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testConstructorThrowsAnExceptionWhenPayloadIsInvalid () {
+ new GitHubPayloadAnalyzer(
+ "Acme",
+ "push",
+ "This is not an object deserialized from JSON but a string."
+ );
+ }
+
+ ///
/// Test if our fallback is correct when the GitHub event type is unknown
///
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 03:19 (11 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2316360
Default Alt Text
D275.id.diff (736 B)
Attached To
Mode
D275: Test GitHubPayloadAnalyzer constructor
Attached
Detach File
Event Timeline
Log In to Comment