Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3930549
D528.id1287.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D528.id1287.diff
View Options
diff --git a/tests/prod-environment-behaves-correctly/TommyTest.php b/tests/prod-environment-behaves-correctly/TommyTest.php
new file mode 100644
--- /dev/null
+++ b/tests/prod-environment-behaves-correctly/TommyTest.php
@@ -0,0 +1,27 @@
+<?php
+
+require_once 'traits/assertHttp.php';
+
+class TommyTest extends PHPUnit_Framework_TestCase {
+ use assertHttp;
+
+ public function testIsLive () {
+ $this->assertHttpResponseCode(200, 'http://builds.nasqueron.org', 'Tommy looks down.');
+ $this->assertHttpResponseCode(404, 'http://builds.nasqueron.org/notexisting', 'A 404 code were expected for a not existing page.');
+ }
+
+ public function testSSL () {
+ $this->assertHttpResponseCode(200, 'https://builds.nasqueron.org/', "Tommy HTTPS issue.");
+ }
+
+ public function testAlive () {
+ $url = 'https://builds.nasqueron.org/status';
+ $this->assertHttpResponseCode(200, $url);
+ $this->assertSame('ALIVE', file_get_contents($url));
+ }
+
+ public function testDashboard () {
+ $content = file_get_contents('https://builds.nasqueron.org');
+ $this->assertContains('ci.nasqueron.org/job/', $content);
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 14:27 (3 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2312620
Default Alt Text
D528.id1287.diff (1 KB)
Attached To
Mode
D528: [Tests] Test Tommy
Attached
Detach File
Event Timeline
Log In to Comment