namespace Nominatim;
+require_once(CONST_BasePath.'/lib/init-website.php');
require_once(CONST_BasePath.'/lib/AddressDetails.php');
-function chksql($oSql, $sMsg = 'Database request failed')
-{
- return $oSql;
-}
-
class AddressDetailsTest extends \PHPUnit\Framework\TestCase
{
- protected function setUp()
+ protected function setUp(): void
{
// How the fixture got created
//
{
$oAD = new AddressDetails($this->oDbStub, 194663412, 10, 'en');
$expected = array(
- 'attraction' => '10 Downing Street',
+ 'tourism' => '10 Downing Street',
'house_number' => '10',
'road' => 'Downing Street',
'neighbourhood' => 'St. James\'s',