Rahul
eb2d816f2a
Added test cases for whitespaces in LatLon
2020-04-04 00:53:40 +05:30
marc tobias
7a94872413
remove polygon=1 (polypoints) feature
2020-03-29 21:58:11 +02:00
marc tobias
7fd9d0eeef
unit tests for ParameterParser::hasSetAny
2020-02-19 16:55:17 +01:00
Sarah Hoffmann
3a3f9b3496
fix formatting
2020-02-09 16:57:55 +01:00
Sarah Hoffmann
c36fd72f99
use detailsPermaLink function on main website as well
2020-02-09 16:05:22 +01:00
Sarah Hoffmann
57ae3d03a1
return place_id link to details when not an OSM object
...
Stop-gap solution to find the right object for Tiger and
interpolation objects.
2020-02-09 15:45:38 +01:00
Sarah Hoffmann
e0de838b13
adapt tests to short_name demotion
2019-10-28 22:53:41 +01:00
Sarah Hoffmann
cdc7d0fe0e
remove visibility modifier from constants again
...
Only supported on PHP >= 7.1.
2019-07-02 23:24:49 +02:00
Sarah Hoffmann
38a99856c0
Rework word set computation
...
Switch from an recursive algorithm for computing the word sets
to an iterative one that benefits from caching intermediate
results. This considerably reduces the amount of memory needed,
so that the depth restriction can be dropped. To ensure that
the number of word sets remains manageable, only sets up to
a certain length are accepted and only a certain number of
total word sets. If word sets need to be dropped, we drop
the ones with more words per word set first.
To further reduce the number of potential word sets, the valid
tokens are looked up first and then only word sets containing
valid tokens are computed.
Fixes #1403 , #1404 and #654 .
2019-06-29 18:22:31 +02:00
marc tobias
890d415e1f
Nominatim::DB support input variables, custom error messages
2019-03-10 16:56:36 +01:00
marc tobias
d4b633bfc5
replace database abstraction DB with PDO
2019-03-09 00:18:15 +01:00
marc tobias
853b536394
Remove get_addressrank_label. Move get_searchrank_label to PHP
2019-02-09 20:38:36 +01:00
marc tobias
b56f7e8ad2
remove phpunit config key deprecated since version 3.5
2019-02-09 00:37:11 +01:00
name
3cd3d1f5ae
test languages with underscores (e.g. ja_rm)
2018-11-24 16:52:24 +02:00
marc tobias
e4a51e460e
set exception handler by request format, not always HTML
2018-10-03 22:58:20 +02:00
Sarah Hoffmann
09595697cc
Merge pull request #1189 from mtmail/classtypes-unit-tests
...
PHP unit tests for Nominatim\ClassTypes
2018-09-22 10:48:32 +02:00
marc tobias
f0daf11375
PHP unit tests for Nominatim\ClassTypes
2018-09-20 19:15:58 +02:00
marc tobias
e2a7a795d4
fix AddressDetails->getAddressDetails, add tests
2018-09-20 02:16:01 +02:00
marc tobias
a9bdac836c
make PHP testsuite work with PHPUnit6
2018-09-15 15:23:10 +02:00
Sarah Hoffmann
a5d35d6e84
use namespaces for PHPUnit classes
...
This is mandatory for PHPUnit 6.x. Older versions provide a
forward compatibility layer, so we should be good.
Fixes #1150 .
2018-08-25 14:57:31 +02:00
marc tobias
c7a4c2c88a
test for SearchContext::setViewboxFromBox
2018-08-14 17:37:54 +02:00
Marc Tobias Metten
0892eab1d3
tests for Nominatim::TokenList
2018-07-19 14:19:50 +02:00
Sarah Hoffmann
b17019a21c
fix unit tests for class types
2018-07-12 23:59:29 +02:00
Marc Tobias Metten
8841a328c8
add PHPCS Squiz.Arrays.ArrayDeclaration.KeyNotAligned rule
2018-05-08 00:37:41 +02:00
mtmail
7075a5828e
add JSON format to /status endpoint ( #1013 )
...
add JSON format to /status endpoint
2018-05-04 23:37:48 +02:00
Marc Tobias Metten
a885e7309a
PHP unit tests for DebugHtml
2018-05-03 22:19:19 +02:00
mtmail
3087ac1145
PHP code style: enforce long array initialisation ( #1015 )
2018-04-13 13:18:29 +02:00
Marc Tobias Metten
1cb87164d9
NominatimTest.php => LibTest.php
2018-03-27 01:38:39 +02:00
Sarah Hoffmann
5c8fbe8186
Merge pull request #941 from mtmail/parameter-parser-tests2
...
PHP tests for ParameterParser
2018-03-06 23:25:20 +01:00
marc tobias
7fd46dcee9
ParameterParser: getSet default value doesnt have to be part of the set
2018-03-06 14:53:23 +01:00
marc tobias
3ef4c4fbe7
ParameterParser: getStringList removes empty strings
2018-03-06 14:51:48 +01:00
marc tobias
47258f40ea
ParameterParser: getFloat with empty string value throws exception
2018-03-06 13:35:27 +01:00
marc tobias
123a3c0347
ParameterParser: getInt with empty string value throws exception
2018-03-06 13:33:19 +01:00
Marc Tobias Metten
d9cd8c6fff
use assertSame to check array order, 0 vs false
2018-02-28 23:22:45 +01:00
Marc Tobias Metten
146779340c
use setExpectedException to make sure exceptions are really thrown
2018-02-24 18:14:34 +01:00
Marc Tobias Metten
fd9345cda3
PHP tests for ParameterParser
2018-02-23 01:46:18 +01:00
Marc Tobias Metten
8a615ad969
phpcs fixes. Mostly spacing and single quotes
2018-02-23 01:16:01 +01:00
marc tobias
5042be1b72
parsing coordinates allows second with floats
2018-02-08 17:45:43 +01:00
Sarah Hoffmann
6c1977b448
replace double-quoting with single quotes where applicable
2017-10-26 21:40:33 +02:00
Marc Tobias Metten
185a983c9d
tests for lib.php closestHouseNumber
2017-10-25 23:58:13 +02:00
Sarah Hoffmann
5c18d6865d
adapt unit tests to new Phrase class
2017-10-14 20:45:20 +02:00
Sarah Hoffmann
2c62a8dbbc
adapt phpunit tests to new SearchContext class
2017-10-09 22:11:46 +02:00
marc tobias
06657b3e10
NearPoint::extractFromQuery - greedy-match optional quote sign
2017-09-21 19:13:50 +02:00
marc tobias
e67a6dc321
fix to NearPoint::extractFromQuery handling first minus sign
2017-09-19 12:40:10 +01:00
Sarah Hoffmann
57b35654e7
fix style
2017-03-17 22:36:22 +01:00
Sarah Hoffmann
20a4cab57e
add tests for nearpoint sql functions
2017-03-16 22:12:20 +01:00
Sarah Hoffmann
1649191ffd
adapt unit tests for new NearPoint type
2017-03-15 23:58:51 +01:00
Sarah Hoffmann
b2be8c3ab7
move php tests in common test dir and unify READMEs
2016-12-30 22:58:58 +01:00