Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Commit

Permalink
Update to phpunit-bridge 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel committed Dec 10, 2017
1 parent 8b02ef7 commit c3acbe8
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 20 deletions.
3 changes: 2 additions & 1 deletion Sami/Tests/IntegrationTest.php
Expand Up @@ -4,10 +4,11 @@

use Blackfire\Bridge\PhpUnit\TestCaseTrait as BlackfireTestCaseTrait;
use Blackfire\Profile;
use PHPUnit\Framework\TestCase;
use Sami\Sami;
use Symfony\Component\Filesystem\Filesystem;

class IntegrationTest extends \PHPUnit_Framework_TestCase
class IntegrationTest extends TestCase
{
use BlackfireTestCaseTrait;

Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/Parser/ClassTraverserTest.php
Expand Up @@ -11,12 +11,13 @@

namespace Sami\Tests\Parser;

use PHPUnit\Framework\TestCase;
use Sami\Parser\ClassTraverser;
use Sami\Project;
use Sami\Reflection\ClassReflection;
use Sami\Store\ArrayStore;

class ClassTraverserTest extends \PHPUnit_Framework_TestCase
class ClassTraverserTest extends TestCase
{
/**
* @dataProvider getTraverseOrderClasses
Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/Parser/ClassVisitor/MethodClassVisitorTest.php
Expand Up @@ -11,9 +11,10 @@

namespace Sami\Tests\Parser\ClassVisitor;

use PHPUnit\Framework\TestCase;
use Sami\Parser\ClassVisitor\MethodClassVisitor;

class MethodClassVisitorTest extends \PHPUnit_Framework_TestCase
class MethodClassVisitorTest extends TestCase
{
public function testAddsMethods()
{
Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/Parser/ClassVisitor/PropertyClassVisitorTest.php
Expand Up @@ -11,9 +11,10 @@

namespace Sami\Tests\Parser\ClassVisitor;

use PHPUnit\Framework\TestCase;
use Sami\Parser\ClassVisitor\PropertyClassVisitor;

class PropertyClassVisitorTest extends \PHPUnit_Framework_TestCase
class PropertyClassVisitorTest extends TestCase
{
public function testAddsProperties()
{
Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/Parser/DocBlockParserTest.php
Expand Up @@ -11,10 +11,11 @@

namespace Sami\Tests\Parser;

use PHPUnit\Framework\TestCase;
use Sami\Parser\DocBlockParser;
use Sami\Parser\Node\DocBlockNode;

class DocBlockParserTest extends \PHPUnit_Framework_TestCase
class DocBlockParserTest extends TestCase
{
/**
* @dataProvider getParseTests
Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/Parser/NodeVisitorTest.php
Expand Up @@ -8,6 +8,7 @@
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\NodeTraverser;
use PhpParser\PrettyPrinter\Standard;
use PHPUnit\Framework\TestCase;
use Sami\Parser\DocBlockParser;
use Sami\Parser\Filter\TrueFilter;
use Sami\Parser\NodeVisitor;
Expand All @@ -21,7 +22,7 @@
/**
* @author Tomasz Struczyński <t.struczynski@gmail.com>
*/
class NodeVisitorTest extends \PHPUnit_Framework_TestCase
class NodeVisitorTest extends TestCase
{
/**
* @dataProvider getMethodTypehints
Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/Parser/ParserContextTest.php
Expand Up @@ -3,12 +3,13 @@
namespace Sami\Tests\Parser;

use PhpParser\PrettyPrinter\Standard as PrettyPrinter;
use PHPUnit\Framework\TestCase;
use Sami\Parser\DocBlockParser;
use Sami\Parser\Filter\TrueFilter;
use Sami\Parser\ParserContext;
use Sami\Reflection\ClassReflection;

class ParserContextTest extends \PHPUnit_Framework_TestCase
class ParserContextTest extends TestCase
{
public function testLeaveClassBeforeEnter()
{
Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/ProjectTest.php
Expand Up @@ -2,12 +2,13 @@

namespace Sami\Tests;

use PHPUnit\Framework\TestCase;
use Sami\Project;
use Sami\Reflection\ClassReflection;
use Sami\Store\ArrayStore;
use Sami\Version\Version;

class ProjectTest extends \PHPUnit_Framework_TestCase
class ProjectTest extends TestCase
{
public function testSwitchVersion()
{
Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/Reflection/ClassReflectionTest.php
Expand Up @@ -2,9 +2,10 @@

namespace Sami\Tests\Reflection;

use PHPUnit\Framework\TestCase;
use Sami\Reflection\ClassReflection;

class ClassReflectionTest extends \PHPUnit_Framework_TestCase
class ClassReflectionTest extends TestCase
{
public function testIsPhpClass()
{
Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/Reflection/MethodReflectionTest.php
Expand Up @@ -2,9 +2,10 @@

namespace Sami\Tests\Reflection;

use PHPUnit\Framework\TestCase;
use Sami\Reflection\MethodReflection;

class MethodReflectionTest extends \PHPUnit_Framework_TestCase
class MethodReflectionTest extends TestCase
{
public function testSetGetModifiers()
{
Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/Reflection/PropertyReflectionTest.php
Expand Up @@ -2,9 +2,10 @@

namespace Sami\Tests\Reflection;

use PHPUnit\Framework\TestCase;
use Sami\Reflection\PropertyReflection;

class PropertyReflectionTest extends \PHPUnit_Framework_TestCase
class PropertyReflectionTest extends TestCase
{
public function testSetGetModifiers()
{
Expand Down
3 changes: 2 additions & 1 deletion Sami/Tests/TreeTest.php
Expand Up @@ -2,6 +2,7 @@

namespace Sami\Tests;

use PHPUnit\Framework\TestCase;
use Sami\Project;
use Sami\Reflection\ClassReflection;
use Sami\Store\ArrayStore;
Expand All @@ -10,7 +11,7 @@
/**
* @author Tomasz Struczyński <t.struczynski@gmail.com>
*/
class TreeTest extends \PHPUnit_Framework_TestCase
class TreeTest extends TestCase
{
public function testNamespaces()
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -26,7 +26,7 @@
"blackfire/php-sdk": "^1.5.18"
},
"require-dev": {
"symfony/phpunit-bridge": "~3.2"
"symfony/phpunit-bridge": "~4.0"
},
"autoload": {
"psr-4": { "Sami\\": "Sami/" }
Expand Down
18 changes: 11 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c3acbe8

Please sign in to comment.