|
From: Jason S. <jsw...@ya...> - 2004-04-12 13:03:28
|
Still seem to be having issues with this: FIRST: using curl via command line to prove proxy is sane: $ curl --proxy http://localhost:18080 www.yahoo.com | wc % Total % Received % Xferd Average Speed Time Curr. Dload Upload Total Current Left Speed 100 33571 0 33571 0 0 55951 0 --:--:-- 0:00:00 --:--:-- 138k 317 2153 33571 SECOND: test using the webtester: $ php proxyl.php Test Proxy 1) True assertion got False in testget FAILURES!!! Test cases run: 1/1, Passes: 0, Failures: 1, Exceptions: 0 THIRD: this is the script: $ cat proxyl.php <?php define('SIMPLETEST','../simpletest/'); require_once(SIMPLETEST . 'web_tester.php'); require_once(SIMPLETEST . 'reporter.php'); SimpleTestOptions::useProxy('http://localhost:18080'); class TestProxy extends WebTestCase { function TestProxy($psName='') { $this->WebTestCase($psName); } function TestGet() { $this->assertTrue($this->get('http://www.yahoo.com/')); } } $test = &new TestProxy('Test Proxy'); if (TextReporter::inCli()) { exit ($test->run(new TextReporter()) ? 0 : 1); } $test->run(new HtmlReporter()); #?> __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html |