Page MenuHomeDevCentral

D275.diff
No OneTemporary

D275.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
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)

Event Timeline