Files
MeDBia/videodb/test/test_google.php

48 lines
976 B
PHP
Raw Normal View History

<?php
/**
* test_google.php
*
* google.com images engine test case
*
* @package Test
* @author Andreas G<EFBFBD>tz <cpuidle@gmx.de>
* @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);
}
}
?>