Skip to content

Commit

Permalink
Upgrade PHPUnit to 7.5.x (#276)
Browse files Browse the repository at this point in the history
Upgrade PHPUnit to 7.5
  • Loading branch information
RageZBla authored and gregurco committed Oct 17, 2019
1 parent f94abd7 commit 4731878
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
bootstrap="vendor/autoload.php"
colors="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/7.5/phpunit.xsd"
>
<php>
<env name="SYMFONY_PHPUNIT_VERSION" value="6.5" />
<env name="SYMFONY_PHPUNIT_VERSION" value="7.5" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" />
</php>

Expand Down
2 changes: 1 addition & 1 deletion tests/DataCollector/HttpDataCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class HttpDataCollectorTest extends TestCase
{
/**
* @var \EightPoints\Bundle\GuzzleBundle\Log\Logger|\PHPUnit_Framework_MockObject_MockObject
* @var \EightPoints\Bundle\GuzzleBundle\Log\Logger|\PHPUnit\Framework\MockObject\MockObject
*/
protected $logger;

Expand Down
2 changes: 1 addition & 1 deletion tests/Log/LogRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class LogRequestTest extends TestCase
{
/** @var \Psr\Http\Message\RequestInterface|\PHPUnit_Framework_MockObject_MockObject */
/** @var \Psr\Http\Message\RequestInterface|\PHPUnit\Framework\MockObject\MockObject */
protected $request;

/** @var array */
Expand Down
10 changes: 5 additions & 5 deletions tests/Middleware/EventDispatchMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class EventDispatchMiddlewareTest extends TestCase
*/
public function testDispatchEvent()
{
/** @var Callable|\PHPUnit_Framework_MockObject_MockObject $preTransactionEvent */
/** @var Callable|\PHPUnit\Framework\MockObject\MockObject $preTransactionEvent */
$preTransactionEvent = $this->createPartialMock(\stdClass::class, ['__invoke']);
$preTransactionEvent->expects($this->once())
->method('__invoke')
->with($this->callback(function(PreTransactionEvent $event){
return $event->getServiceName() === 'main';
}));

/** @var Callable|\PHPUnit_Framework_MockObject_MockObject $postTransactionEvent */
/** @var Callable|\PHPUnit\Framework\MockObject\MockObject $postTransactionEvent */
$postTransactionEvent = $this->createPartialMock(\stdClass::class, ['__invoke']);
$postTransactionEvent->expects($this->once())
->method('__invoke')
Expand Down Expand Up @@ -136,7 +136,7 @@ public function testCaseWhenPostTransactionListenerChangesResponse()
*/
public function testDispatchEventShouldCallPostTransactionListener()
{
/** @var Callable|\PHPUnit_Framework_MockObject_MockObject $postTransactionEvent */
/** @var Callable|\PHPUnit\Framework\MockObject\MockObject $postTransactionEvent */
$postTransactionEvent = $this->createPartialMock(\stdClass::class, ['__invoke']);
$postTransactionEvent->expects($this->once())
->method('__invoke')
Expand Down Expand Up @@ -169,7 +169,7 @@ public function testDispatchEventShouldCallPostTransactionListener()
*/
public function testCaseWhenPostTransactionListenerReceivesNullFromException()
{
/** @var Callable|\PHPUnit_Framework_MockObject_MockObject $postTransactionEvent */
/** @var Callable|\PHPUnit\Framework\MockObject\MockObject $postTransactionEvent */
$postTransactionEvent = $this->createPartialMock(\stdClass::class, ['__invoke']);
$postTransactionEvent->expects($this->once())
->method('__invoke')
Expand Down Expand Up @@ -200,7 +200,7 @@ public function testCaseWhenPostTransactionListenerReceivesNullFromException()
*/
public function testCaseWhenPostTransactionListenerReceivesResponseFromException()
{
/** @var Callable|\PHPUnit_Framework_MockObject_MockObject $postTransactionEvent */
/** @var Callable|\PHPUnit\Framework\MockObject\MockObject $postTransactionEvent */
$postTransactionEvent = $this->createPartialMock(\stdClass::class, ['__invoke']);
$postTransactionEvent->expects($this->once())
->method('__invoke')
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/RequestTimeMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class RequestTimeMiddlewareTest extends TestCase
{
/** @var \EightPoints\Bundle\GuzzleBundle\Log\LoggerInterface|\PHPUnit_Framework_MockObject_MockObject */
/** @var \EightPoints\Bundle\GuzzleBundle\Log\LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
protected $logger;

public function setUp()
Expand Down

0 comments on commit 4731878

Please sign in to comment.