summaryrefslogtreecommitdiff
path: root/tests/UnitTests/simpletest/test/real_sites_test.php
diff options
context:
space:
mode:
authorxue <>2005-11-10 12:47:19 +0000
committerxue <>2005-11-10 12:47:19 +0000
commit55c4ac1bfe565f1ca7f537fdd8b7a201be28e581 (patch)
treea0599d5e36fdbb3f1e169ae56bab7d529597e3eb /tests/UnitTests/simpletest/test/real_sites_test.php
Initial import of prado framework
Diffstat (limited to 'tests/UnitTests/simpletest/test/real_sites_test.php')
-rw-r--r--tests/UnitTests/simpletest/test/real_sites_test.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/UnitTests/simpletest/test/real_sites_test.php b/tests/UnitTests/simpletest/test/real_sites_test.php
new file mode 100644
index 00000000..728b6e95
--- /dev/null
+++ b/tests/UnitTests/simpletest/test/real_sites_test.php
@@ -0,0 +1,29 @@
+<?php
+ // $Id: real_sites_test.php,v 1.16 2004/12/05 21:12:33 lastcraft Exp $
+
+ require_once(dirname(__FILE__) . '/../web_tester.php');
+
+ class LiveSitesTestCase extends WebTestCase {
+
+ function testLastCraft() {
+ $this->assertTrue($this->get('http://www.lastcraft.com'));
+ $this->assertResponse(array(200));
+ $this->assertMime(array('text/html'));
+ $this->clickLink('About');
+ $this->assertTitle('About Last Craft');
+ }
+
+ function testSourceforge() {
+ $this->assertTrue($this->get('http://sourceforge.net/'));
+ $this->setField('words', 'simpletest');
+ $this->assertTrue($this->clickImageByName('imageField'));
+ $this->assertTitle('SourceForge.net: Search');
+ $this->assertTrue($this->clickLink('SimpleTest'));
+ $this->clickLink('statistics');
+ $this->assertWantedPattern('/Statistics for the past 7 days/');
+ $this->assertTrue($this->setField('report', 'Monthly'));
+ $this->clickSubmit('Change Stats View');
+ $this->assertWantedPattern('/Statistics for the past \d+ months/');
+ }
+ }
+?> \ No newline at end of file