|
From: Jason S. <jsw...@ya...> - 2004-03-31 17:37:10
|
define('LIB_SIMPLETEST','../simpletest/');
define('AD', 'https://www.alcoadirect.com/');
require_once(LIB_SIMPLETEST . 'web_tester.php');
require_once(LIB_SIMPLETEST . 'reporter.php');
class TestAlcoaDirect extends WebTestCase
{
function TestAlcoaDirect($psName='') {
$this->WebTestCase($psName);
}
function testHomepage() {
$this->assertTrue($this->get(AD));
$this->dump(get_class($browser =& $this->GetBrowser()));
$this->showSource();
}
}
$test = &new TestAlcoaDirect();
if (TextReporter::inCli()) {
exit ($test->run(new TextReporter()) ? 0 : 1);
}
$test->run(new HtmlReporter());
Script Output:
testalcoadirect
simplebrowser
Fatal error: Call to undefined function: getcontent() in
/home/sweatje/public_html/simpletest/web_tester.php on line 45
Something easy I am missing?? I could fetch the site with other tools to get
the source code, but I thought I would just try to do it all inside of php.
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
|