mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
Merge pull request #1155 from lonvia/namespace-for-phpunit
use namespaces for PHPUnit classes
This commit is contained in:
@@ -6,7 +6,7 @@ use Exception;
|
|||||||
|
|
||||||
require_once('../../lib/DebugHtml.php');
|
require_once('../../lib/DebugHtml.php');
|
||||||
|
|
||||||
class DebugTest extends \PHPUnit_Framework_TestCase
|
class DebugTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace Nominatim;
|
|||||||
require_once '../../lib/lib.php';
|
require_once '../../lib/lib.php';
|
||||||
require_once '../../lib/ClassTypes.php';
|
require_once '../../lib/ClassTypes.php';
|
||||||
|
|
||||||
class LibTest extends \PHPUnit_Framework_TestCase
|
class LibTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
public function testGetClassTypesWithImportance()
|
public function testGetClassTypesWithImportance()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ function userError($sError)
|
|||||||
throw new Exception($sError);
|
throw new Exception($sError);
|
||||||
}
|
}
|
||||||
|
|
||||||
class ParameterParserTest extends \PHPUnit_Framework_TestCase
|
class ParameterParserTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ namespace Nominatim;
|
|||||||
|
|
||||||
require_once '../../lib/Phrase.php';
|
require_once '../../lib/Phrase.php';
|
||||||
|
|
||||||
class PhraseTest extends \PHPUnit_Framework_TestCase
|
class PhraseTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace Nominatim;
|
|||||||
|
|
||||||
require_once '../../lib/SearchContext.php';
|
require_once '../../lib/SearchContext.php';
|
||||||
|
|
||||||
class SearchContextTest extends \PHPUnit_Framework_TestCase
|
class SearchContextTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
private $oCtx;
|
private $oCtx;
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ require_once('DB.php');
|
|||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
class StatusTest extends \PHPUnit_Framework_TestCase
|
class StatusTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ require_once '../../lib/db.php';
|
|||||||
require_once '../../lib/cmd.php';
|
require_once '../../lib/cmd.php';
|
||||||
require_once '../../lib/TokenList.php';
|
require_once '../../lib/TokenList.php';
|
||||||
|
|
||||||
class TokenTest extends \PHPUnit_Framework_TestCase
|
class TokenTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user