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/'); } } ?>