Skip to content

Commit 53adec1

Browse files
peterrehmfabpot
authored andcommitted
Update to PHPUnit namespaces
1 parent 927a4a6 commit 53adec1

File tree

10 files changed

+21
-10
lines changed

10 files changed

+21
-10
lines changed

Tests/Comparator/ComparatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Finder\Tests\Comparator;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Finder\Comparator\Comparator;
1516

16-
class ComparatorTest extends \PHPUnit_Framework_TestCase
17+
class ComparatorTest extends TestCase
1718
{
1819
public function testGetSetOperator()
1920
{

Tests/Comparator/DateComparatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Finder\Tests\Comparator;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Finder\Comparator\DateComparator;
1516

16-
class DateComparatorTest extends \PHPUnit_Framework_TestCase
17+
class DateComparatorTest extends TestCase
1718
{
1819
public function testConstructor()
1920
{

Tests/Comparator/NumberComparatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Finder\Tests\Comparator;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Finder\Comparator\NumberComparator;
1516

16-
class NumberComparatorTest extends \PHPUnit_Framework_TestCase
17+
class NumberComparatorTest extends TestCase
1718
{
1819
/**
1920
* @dataProvider getConstructorTestData

Tests/Expression/ExpressionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Finder\Tests\Expression;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Finder\Expression\Expression;
1516

16-
class ExpressionTest extends \PHPUnit_Framework_TestCase
17+
class ExpressionTest extends TestCase
1718
{
1819
/**
1920
* @dataProvider getTypeGuesserData

Tests/Expression/GlobTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Finder\Tests\Expression;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Finder\Expression\Expression;
1516

16-
class GlobTest extends \PHPUnit_Framework_TestCase
17+
class GlobTest extends TestCase
1718
{
1819
/**
1920
* @dataProvider getToRegexData

Tests/Expression/RegexTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Finder\Tests\Expression;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Finder\Expression\Expression;
1516

16-
class RegexTest extends \PHPUnit_Framework_TestCase
17+
class RegexTest extends TestCase
1718
{
1819
/**
1920
* @dataProvider getHasFlagsData

Tests/GlobTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Finder\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Finder\Glob;
1516

16-
class GlobTest extends \PHPUnit_Framework_TestCase
17+
class GlobTest extends TestCase
1718
{
1819
public function testGlobToRegexDelimiters()
1920
{

Tests/Iterator/IteratorTestCase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
namespace Symfony\Component\Finder\Tests\Iterator;
1313

14-
abstract class IteratorTestCase extends \PHPUnit_Framework_TestCase
14+
use PHPUnit\Framework\TestCase;
15+
16+
abstract class IteratorTestCase extends TestCase
1517
{
1618
protected function assertIterator($expected, \Traversable $iterator)
1719
{

Tests/Iterator/MultiplePcreFilterIteratorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Finder\Tests\Iterator;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator;
1516

16-
class MultiplePcreFilterIteratorTest extends \PHPUnit_Framework_TestCase
17+
class MultiplePcreFilterIteratorTest extends TestCase
1718
{
1819
/**
1920
* @dataProvider getIsRegexFixtures

Tests/Shell/CommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Finder\Tests\Shell;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Finder\Shell\Command;
1516

16-
class CommandTest extends \PHPUnit_Framework_TestCase
17+
class CommandTest extends TestCase
1718
{
1819
public function testCreate()
1920
{

0 commit comments

Comments
 (0)