Skip to content

Commit

Permalink
Merge pull request #57 from gabriel-caruso/phpunit
Browse files Browse the repository at this point in the history
Use PSR-1 for PHPUnit TestCase
  • Loading branch information
alcohol committed Nov 6, 2017
2 parents ad1f514 + 80c0058 commit 2b303e4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
4 changes: 3 additions & 1 deletion tests/ComparatorTest.php
Expand Up @@ -11,10 +11,12 @@

namespace Composer\Semver;

use PHPUnit\Framework\TestCase;

/**
* @coversDefaultClass \Composer\Semver\Comparator
*/
class ComparatorTest extends \PHPUnit_Framework_TestCase
class ComparatorTest extends TestCase
{
/**
* @covers ::greaterThan
Expand Down
4 changes: 3 additions & 1 deletion tests/Constraint/ConstraintTest.php
Expand Up @@ -11,7 +11,9 @@

namespace Composer\Semver\Constraint;

class ConstraintTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class ConstraintTest extends TestCase
{
public static function successfulVersionMatches()
{
Expand Down
4 changes: 3 additions & 1 deletion tests/Constraint/MultiConstraintTest.php
Expand Up @@ -11,7 +11,9 @@

namespace Composer\Semver\Constraint;

class MultiConstraintTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class MultiConstraintTest extends TestCase
{
public function testMultiVersionMatchSucceeds()
{
Expand Down
4 changes: 3 additions & 1 deletion tests/SemverTest.php
Expand Up @@ -11,10 +11,12 @@

namespace Composer\Semver;

use PHPUnit\Framework\TestCase;

/**
* @coversDefaultClass \Composer\Semver\Semver
*/
class SemverTest extends \PHPUnit_Framework_TestCase
class SemverTest extends TestCase
{
/**
* @covers ::satisfies
Expand Down
3 changes: 2 additions & 1 deletion tests/VersionParserTest.php
Expand Up @@ -14,8 +14,9 @@
use Composer\Semver\Constraint\EmptyConstraint;
use Composer\Semver\Constraint\MultiConstraint;
use Composer\Semver\Constraint\Constraint;
use PHPUnit\Framework\TestCase;

class VersionParserTest extends \PHPUnit_Framework_TestCase
class VersionParserTest extends TestCase
{
/**
* @dataProvider numericAliasVersions
Expand Down

0 comments on commit 2b303e4

Please sign in to comment.