Page MenuHomeDevCentral

D275.id.diff
No OneTemporary

D275.id.diff

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

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)

Event Timeline