diff --git a/tests/prod-environment-behaves-correctly/TommyTest.php b/tests/prod-environment-behaves-correctly/TommyTest.php new file mode 100644 index 0000000..433703d --- /dev/null +++ b/tests/prod-environment-behaves-correctly/TommyTest.php @@ -0,0 +1,27 @@ +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); + } +}