Skip to content

Commit

Permalink
Merge f639c4e into e47f350
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Nov 20, 2017
2 parents e47f350 + f639c4e commit 526cc82
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -46,7 +46,7 @@ install: composer update $COMPOSER_FLAGS --dev --no-interaction --prefer-dist

script:
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then mkdir -p build/logs; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then phpunit --coverage-clover build/logs/clover.xml; else phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; else vendor/bin/phpunit; fi

after_script:
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then php vendor/bin/coveralls -v; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then php vendor/bin/coveralls -v; fi
4 changes: 2 additions & 2 deletions Tests/DataCollector/DeviceDataCollectorTest.php
Expand Up @@ -11,7 +11,7 @@

namespace SunCat\MobileDetectBundle\Tests\DataCollector;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use PHPUnit_Framework_MockObject_MockBuilder;
use SunCat\MobileDetectBundle\DataCollector\DeviceDataCollector;
use SunCat\MobileDetectBundle\EventListener\RequestResponseListener;
Expand All @@ -27,7 +27,7 @@
*
* @author suncat2000 <nikolay.kotovsky@gmail.com>
*/
class DeviceDataCollectorTest extends PHPUnit_Framework_TestCase
class DeviceDataCollectorTest extends TestCase
{
/**
* @var PHPUnit_Framework_MockObject_MockBuilder
Expand Down
4 changes: 2 additions & 2 deletions Tests/DependencyInjection/MobileDetectExtensionTest.php
Expand Up @@ -11,8 +11,8 @@

namespace SunCat\MobileDetectBundle\Tests\DependencyInjection;

use PHPUnit_Framework_TestCase;
use PHPUnit_Framework_MockObject_MockBuilder;
use PHPUnit\Framework\TestCase;
use SunCat\MobileDetectBundle\DependencyInjection\MobileDetectExtension;
use SunCat\MobileDetectBundle\Helper\DeviceView;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand All @@ -25,7 +25,7 @@
*
* @author suncat2000 <nikolay.kotovsky@gmail.com>
*/
class MobileDetectExtensionTest extends PHPUnit_Framework_TestCase
class MobileDetectExtensionTest extends TestCase
{
/**
* @var ContainerBuilder
Expand Down
10 changes: 5 additions & 5 deletions Tests/EventListener/RequestResponseListenerTest.php
Expand Up @@ -2,7 +2,7 @@

namespace SunCat\MobileDetectBundle\Tests\RequestListener;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use PHPUnit_Framework_MockObject_MockBuilder;
use SunCat\MobileDetectBundle\EventListener\RequestResponseListener;
use SunCat\MobileDetectBundle\Helper\DeviceView;
Expand All @@ -16,7 +16,7 @@
/**
* Request and Response Listener Test
*/
class RequestResponseListenerTest extends PHPUnit_Framework_TestCase
class RequestResponseListenerTest extends TestCase
{

/**
Expand Down Expand Up @@ -683,7 +683,7 @@ private function createRouteCollecitonWithRouteAndRoutingOption($returnValue, $t
{
$route = $this->getMockBuilder('Symfony\Component\Routing\Route')->disableOriginalConstructor()->getMock();
$route->expects($this->exactly($times))->method('getOption')->will($this->returnValue($returnValue));
$routeCollection = $this->getMock('Symfony\Component\Routing\RouteCollection');
$routeCollection = $this->createMock('Symfony\Component\Routing\RouteCollection');
$routeCollection->expects($this->exactly($times))->method('get')->will($this->returnValue($route));

return $routeCollection;
Expand All @@ -701,7 +701,7 @@ private function createRouteCollecitonWithRouteAndRoutingOption($returnValue, $t
private function createGetResponseEvent($content, $method = 'GET', $headers = array())
{
$event = new GetResponseForControllerResultEvent(
$this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface'),
$this->createMock('Symfony\Component\HttpKernel\HttpKernelInterface'),
$this->request,
HttpKernelInterface::MASTER_REQUEST,
$content
Expand All @@ -723,7 +723,7 @@ private function createGetResponseEvent($content, $method = 'GET', $headers = ar
private function createFilterResponseEvent($response, $method = 'GET', $headers = array())
{
$event = new FilterResponseEvent(
$this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface'),
$this->createMock('Symfony\Component\HttpKernel\HttpKernelInterface'),
$this->request,
HttpKernelInterface::MASTER_REQUEST,
$response
Expand Down
4 changes: 2 additions & 2 deletions Tests/Helper/DeviceViewTest.php
Expand Up @@ -2,7 +2,7 @@

namespace SunCat\MobileDetectBundle\Tests\Helper;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use PHPUnit_Framework_MockObject_MockBuilder;
use SunCat\MobileDetectBundle\Helper\DeviceView;
use Symfony\Component\HttpFoundation\Cookie;
Expand All @@ -12,7 +12,7 @@
/**
* DeviceView Test
*/
class DeviceViewTest extends PHPUnit_Framework_TestCase
class DeviceViewTest extends TestCase
{

/**
Expand Down
4 changes: 2 additions & 2 deletions Tests/Twig/Extension/MobileDetectExtensionTest.php
Expand Up @@ -2,7 +2,7 @@

namespace SunCat\MobileDetectBundle\Tests\Helper;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use PHPUnit_Framework_MockObject_MockBuilder;
use SunCat\MobileDetectBundle\Helper\DeviceView;
use SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension;
Expand All @@ -14,7 +14,7 @@
/**
* DeviceView Test
*/
class MobileDetectExtensionTest extends PHPUnit_Framework_TestCase
class MobileDetectExtensionTest extends TestCase
{
/**
* @var PHPUnit_Framework_MockObject_MockBuilder
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -26,7 +26,7 @@
"twig/twig": "~1.26|~2.0"
},
"require-dev": {
"phpunit/phpunit": "~4.1",
"phpunit/phpunit": "^4.8.35|^5.4.3|^6.0",
"symfony/phpunit-bridge": "~2.7|~3.3",
"satooshi/php-coveralls": "dev-master"
},
Expand Down

0 comments on commit 526cc82

Please sign in to comment.