Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Upgraded PHPUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
kleijnweb committed Nov 22, 2017
1 parent 0ac92b4 commit c60f11f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 21 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"kleijnweb/php-api-hydrator": "^v1.0.0-alpha2"
},
"require-dev": {
"phpunit/phpunit": "^5.2",
"phpunit/phpunit-mock-objects": "^3.1",
"phpunit/phpunit": "^6.4",
"symfony/framework-bundle": ">=2.8.7",
"symfony/security-bundle": ">=2.8.7",
"symfony/monolog-bridge": ">=2.8.7",
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/BundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@

use KleijnWeb\PhpApi\RoutingBundle\DependencyInjection\PhpApiRoutingExtension;
use KleijnWeb\PhpApi\RoutingBundle\PhpApiRoutingBundle;
use PHPUnit\Framework\TestCase;

class BundleTest extends \PHPUnit_Framework_TestCase
class BundleTest extends TestCase
{
/**
* @test
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

use KleijnWeb\PhpApi\RoutingBundle\DependencyInjection\Configuration;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use PHPUnit\Framework\TestCase;

class ConfigurationTest extends \PHPUnit_Framework_TestCase
class ConfigurationTest extends TestCase
{
/**
* @test
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/DependencyInjection/ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@

use KleijnWeb\PhpApi\RoutingBundle\DependencyInjection\PhpApiRoutingExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use PHPUnit\Framework\TestCase;

class ExtensionTest extends \PHPUnit_Framework_TestCase
class ExtensionTest extends TestCase
{
/**
* @var PhpApiRoutingExtension
Expand Down
17 changes: 2 additions & 15 deletions tests/unit/Routing/OpenApiRouteLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
use KleijnWeb\PhpApi\Descriptions\Description\Schema\Schema;
use KleijnWeb\PhpApi\RoutingBundle\Routing\OpenApiRouteLoader;
use Symfony\Component\Routing\Route;
use PHPUnit\Framework\TestCase;

/**
* @author John Kleijn <john@kleijnweb.nl>
*/
class OpenApiRouteLoaderTest extends \PHPUnit_Framework_TestCase
class OpenApiRouteLoaderTest extends TestCase
{
const DOCUMENT_PATH = '/totally/non-existent/path';

Expand Down Expand Up @@ -73,20 +74,6 @@ public function supportSwaggerAsRouteTypeOnly()
$this->assertTrue($this->loader->supports('/a/b/c', 'customname'));
}

/**
* @test
*/
public function canLoadMultipleDocuments()
{
$this->decriptionMock
->expects($this->any())
->method('getPaths')
->willReturn([]);

$this->loader->load(self::DOCUMENT_PATH);
$this->loader->load(self::DOCUMENT_PATH . '2');
}

/**
* @test
*/
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/Routing/RequestMetaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
use KleijnWeb\PhpApi\Descriptions\Description\Repository;
use KleijnWeb\PhpApi\RoutingBundle\Routing\RequestMeta;
use Symfony\Component\HttpFoundation\Request;
use PHPUnit\Framework\TestCase;


/**
* @author John Kleijn <john@kleijnweb.nl>
*/
class RequestMetaTest extends \PHPUnit_Framework_TestCase
class RequestMetaTest extends TestCase
{
/**
* @test
Expand Down

0 comments on commit c60f11f

Please sign in to comment.