Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3770837
D275.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.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
Sun, Nov 24, 21:39 (21 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2261128
Default Alt Text
D275.diff (736 B)
Attached To
Mode
D275: Test GitHubPayloadAnalyzer constructor
Attached
Detach File
Event Timeline
Log In to Comment