diff options
author | Arnold Daniels <arnold@jasny.net> | 2017-02-09 14:58:17 +0100 |
---|---|---|
committer | Arnold Daniels <arnold@jasny.net> | 2017-02-09 14:58:17 +0100 |
commit | b3628e20a477ea0cc132f752378866a4172dbd93 (patch) | |
tree | 57b21ce3941b93aea581b19ee57b55641d8ba5a1 | |
parent | 75ab132381ac2e9fc97daae680410e8cb3d292c3 (diff) | |
download | controller-b3628e20a477ea0cc132f752378866a4172dbd93.zip controller-b3628e20a477ea0cc132f752378866a4172dbd93.tar.gz controller-b3628e20a477ea0cc132f752378866a4172dbd93.tar.bz2 |
Fixup after rebase
-rw-r--r-- | tests/Controller/ContentNegotiationTest.php | 2 | ||||
-rw-r--r-- | tests/ControllerTest.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/Controller/ContentNegotiationTest.php b/tests/Controller/ContentNegotiationTest.php index d5e142d..4775306 100644 --- a/tests/Controller/ContentNegotiationTest.php +++ b/tests/Controller/ContentNegotiationTest.php @@ -38,7 +38,7 @@ class ContentNegotiationTest extends \PHPUnit_Framework_TestCase $trait->expects($this->once())->method('getRequest')->will($this->returnValue($request)); $trait->expects($this->once())->method('getNegotiator')->with($this->equalTo($type))->will($this->returnValue($negotiator)); - $buildClass = $this->callProtectedMethod($trait, 'getNegotiatorName', [$type]); + $buildClass = $this->callPrivateMethod($trait, 'getNegotiatorName', [$type]); $result = $trait->{$method}($priorities); $this->assertEquals($buildClass, $negotiatorClass, "Obtained wrong negotiator class"); diff --git a/tests/ControllerTest.php b/tests/ControllerTest.php index b980d48..b0f357f 100644 --- a/tests/ControllerTest.php +++ b/tests/ControllerTest.php @@ -5,14 +5,14 @@ namespace Jasny; use Jasny\Controller; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ResponseInterface; -use Jasny\Controller\TestHelper; +use Jasny\Controller\TestHelper as ControllerTestHelper; /** * @covers Jasny\Controller */ class ControllerTest extends \PHPUnit_Framework_TestCase { - use TestHelper; + use ControllerTestHelper; /** * Test running controller |