mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-24 06:22:08 +03:00
Merge pull request #1155 from lonvia/namespace-for-phpunit
use namespaces for PHPUnit classes
This commit is contained in:
commit
28d7e11e4f
@ -6,7 +6,7 @@ use Exception;
|
||||
|
||||
require_once('../../lib/DebugHtml.php');
|
||||
|
||||
class DebugTest extends \PHPUnit_Framework_TestCase
|
||||
class DebugTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected function setUp()
|
||||
{
|
||||
|
@ -5,7 +5,7 @@ namespace Nominatim;
|
||||
require_once '../../lib/lib.php';
|
||||
require_once '../../lib/ClassTypes.php';
|
||||
|
||||
class LibTest extends \PHPUnit_Framework_TestCase
|
||||
class LibTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testGetClassTypesWithImportance()
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ function userError($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';
|
||||
|
||||
class PhraseTest extends \PHPUnit_Framework_TestCase
|
||||
class PhraseTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
|
||||
|
||||
|
@ -6,7 +6,7 @@ namespace Nominatim;
|
||||
|
||||
require_once '../../lib/SearchContext.php';
|
||||
|
||||
class SearchContextTest extends \PHPUnit_Framework_TestCase
|
||||
class SearchContextTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
private $oCtx;
|
||||
|
||||
|
@ -7,7 +7,7 @@ require_once('DB.php');
|
||||
|
||||
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/TokenList.php';
|
||||
|
||||
class TokenTest extends \PHPUnit_Framework_TestCase
|
||||
class TokenTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected function setUp()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user