Skip to content

Commit

Permalink
Use ::class constants
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Aug 24, 2020
1 parent 80ac0e7 commit 364b1f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/Controller/RunTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace XHGui\Test\Controller;

use Slim\Slim;
use Slim\Environment;
use XHGui\Test\TestCase;
use Xhgui_Controller_Import;
Expand Down Expand Up @@ -32,7 +33,7 @@ public function setUp()
));

$di = Xhgui_ServiceContainer::instance();
$mock = $this->getMockBuilder('Slim\Slim')
$mock = $this->getMockBuilder(Slim::class)
->setMethods(array('redirect', 'render', 'urlFor'))
->setConstructorArgs(array($di['config']))
->getMock();
Expand Down
3 changes: 2 additions & 1 deletion tests/Controller/WatchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Xhgui_Controller_Watch;
use Xhgui_Searcher_Interface;
use Xhgui_ServiceContainer;
use Slim\Slim;

class WatchTest extends TestCase
{
Expand All @@ -27,7 +28,7 @@ public function setUp()
$di = Xhgui_ServiceContainer::instance();
unset($di['app']);

$mock = $this->getMockBuilder('Slim\Slim')
$mock = $this->getMockBuilder(Slim::class)
->setMethods(array('redirect', 'render', 'urlFor'))
->setConstructorArgs(array($di['config']))
->getMock();
Expand Down

0 comments on commit 364b1f9

Please sign in to comment.