Skip to content

Commit

Permalink
using imports in test cases
Browse files Browse the repository at this point in the history
some minor code styling
  • Loading branch information
Steffen Dietz authored and Steffen Dietz committed Apr 1, 2021
1 parent a4c200e commit 4298606
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class MaglLegacyTest extends PHPUnit_Framework_TestCase

public function testGetInstance()
{

$instance = MaglLegacy::getInstance();
$this->assertInstanceOf('\MaglLegacyApplication\Application\MaglLegacy', $instance);

Expand Down Expand Up @@ -91,7 +90,6 @@ public function testSetGetLegacyScriptFileName()

public function testSetGetApplication()
{

$appMock = $this->getMockBuilder('Laminas\Mvc\Application')
->disableOriginalConstructor()
->getMock();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@

namespace MaglLegacyApplicationTest\Controller;

use MaglLegacyApplication\Options\LegacyControllerOptions;
use MaglLegacyApplicationTest\Bootstrap;
use Laminas\Stdlib\ResponseInterface;
use Laminas\View\Model\ViewModel;
use Laminas\Test\PHPUnit\Controller\AbstractHttpControllerTestCase;

class LegacyControllerTest extends \Laminas\Test\PHPUnit\Controller\AbstractHttpControllerTestCase
class LegacyControllerTest extends AbstractHttpControllerTestCase
{

protected $traceError = true;
Expand Down
3 changes: 2 additions & 1 deletion tests/MaglLegacyApplicationTest/ModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace MaglLegacyApplicationTest;

use MaglLegacyApplication\Module;
use PHPUnit_Framework_TestCase;

/**
* Description of ModuleTest
*
* @author matthias
*/
class ModuleTest extends \PHPUnit_Framework_TestCase
class ModuleTest extends PHPUnit_Framework_TestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

namespace MaglLegacyApplicationTest\Options;

class LegacyControllerOptionsTest extends \PHPUnit_Framework_TestCase
use PHPUnit_Framework_TestCase;

class LegacyControllerOptionsTest extends PHPUnit_Framework_TestCase
{

public function testSetGetDocRoot()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@

namespace MaglLegacyApplicationTest\Service;


use MaglLegacyApplication\Service\ControllerService;
use MaglLegacyApplicationTest\Bootstrap;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\Mvc\Controller\ControllerManager;
use Laminas\View\Model\ViewModel;
use MaglLegacyApplication\Service\ControllerService;
use MaglLegacyApplicationTest\Bootstrap;
use PHPUnit_Framework_TestCase;

class ControllerServiceTest extends \PHPUnit_Framework_TestCase {
class ControllerServiceTest extends PHPUnit_Framework_TestCase
{

/**
* @var ControllerService
Expand Down

0 comments on commit 4298606

Please sign in to comment.