* @version $Id: test_google.php,v 1.5 2013/02/02 11:38:59 andig2 Exp $ */ require_once './core/functions.php'; require_once './engines/engines.php'; class TestGoogle extends UnitTestCase { function TestGoogle() { parent::__construct(); } function testSearch() { // http://images.google.com/images?q=terminator $id = 'Terminator'; $data = engineSearch($id, 'google'); #$this->assertNoErrors(); $this->assertTrue(sizeof($data) >= 16); # dump($data); } function testSearch2() { // http://images.google.com/images?q=Out+of+Time $id = 'Out of Time'; $data = engineSearch($id, 'google'); #$this->assertNoErrors(); $this->assertTrue(sizeof($data) >= 16); # dump($data); } } ?>