Skip to content

Commit

Permalink
Remove AssertTrueFalseInternalTypeToSpecificMethodRector as deprecate…
Browse files Browse the repository at this point in the history
…d in PHPUnit 8.0 (#221)
  • Loading branch information
TomasVotruba committed Jul 12, 2023
1 parent 7aaf9f5 commit 568328a
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 256 deletions.
2 changes: 0 additions & 2 deletions config/sets/phpunit-code-quality.php
Expand Up @@ -19,7 +19,6 @@
use Rector\PHPUnit\Rector\MethodCall\AssertRegExpRector;
use Rector\PHPUnit\Rector\MethodCall\AssertSameBoolNullToSpecificMethodRector;
use Rector\PHPUnit\Rector\MethodCall\AssertSameTrueFalseToAssertTrueFalseRector;
use Rector\PHPUnit\Rector\MethodCall\AssertTrueFalseInternalTypeToSpecificMethodRector;
use Rector\PHPUnit\Rector\MethodCall\AssertTrueFalseToSpecificMethodRector;
use Rector\PHPUnit\Rector\MethodCall\RemoveExpectAnyFromMockRector;
use Rector\PHPUnit\Rector\MethodCall\RemoveSetMethodsMethodCallRector;
Expand All @@ -41,7 +40,6 @@
AssertTrueFalseToSpecificMethodRector::class,
AssertSameBoolNullToSpecificMethodRector::class,
AssertFalseStrposToContainsRector::class,
AssertTrueFalseInternalTypeToSpecificMethodRector::class,
AssertIssetToSpecificMethodRector::class,
AssertInstanceOfComparisonRector::class,
AssertPropertyExistsRector::class,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -1,12 +1,15 @@
<?php

namespace Rector\PHPUnit\Tests\PHPUnit80\Rector\MethodCall\SpecificAssertInternalTypeRector\Fixture;

final class SomeTest extends \PHPUnit\Framework\TestCase
{
public function test()
{
$value = 'value';
$this->assertInternalType('string', $value);
$this->assertInternalType('array', $value);

$this->assertNotInternalType('bool', $value, 'message');
$this->assertNotInternalType('boolean', $value, 'message');
$this->assertNotInternalType('callable', $value, 'message');
Expand All @@ -17,13 +20,16 @@ final class SomeTest extends \PHPUnit\Framework\TestCase
-----
<?php

namespace Rector\PHPUnit\Tests\PHPUnit80\Rector\MethodCall\SpecificAssertInternalTypeRector\Fixture;

final class SomeTest extends \PHPUnit\Framework\TestCase
{
public function test()
{
$value = 'value';
$this->assertIsString($value);
$this->assertIsArray($value);

$this->assertIsNotBool($value, 'message');
$this->assertIsNotBool($value, 'message');
$this->assertIsNotCallable($value, 'message');
Expand Down

0 comments on commit 568328a

Please sign in to comment.