Merge pull request #1155 from lonvia/namespace-for-phpunit

use namespaces for PHPUnit classes
This commit is contained in:
Sarah Hoffmann 2018-08-26 15:51:11 +02:00 committed by GitHub
commit 28d7e11e4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

@ -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()
{

View File

@ -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()
{

View File

@ -12,7 +12,7 @@ function userError($sError)
throw new Exception($sError);
}
class ParameterParserTest extends \PHPUnit_Framework_TestCase
class ParameterParserTest extends \PHPUnit\Framework\TestCase
{

View File

@ -4,7 +4,7 @@ namespace Nominatim;
require_once '../../lib/Phrase.php';
class PhraseTest extends \PHPUnit_Framework_TestCase
class PhraseTest extends \PHPUnit\Framework\TestCase
{

View File

@ -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;

View File

@ -7,7 +7,7 @@ require_once('DB.php');
use Exception;
class StatusTest extends \PHPUnit_Framework_TestCase
class StatusTest extends \PHPUnit\Framework\TestCase
{

View File

@ -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()
{