Skip to content

Commit e54e70e

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! add variable support to CreateStubOverCreateMockArgRector
1 parent 54b15c7 commit e54e70e

File tree

1 file changed

+30
-0
lines changed
  • rules-tests/CodeQuality/Rector/MethodCall/AssertTrueFalseToSpecificMethodRector/Fixture

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\CodeQuality\Rector\MethodCall\AssertTrueFalseToSpecificMethodRector\Fixture;
4+
5+
abstract class Testing extends \PHPUnit\Framework\TestCase
6+
{
7+
}
8+
9+
final class MyTest extends Testing
10+
{
11+
public function test()
12+
{
13+
$this->assertTrue(array_key_exists('...', ['...']), 'argument');
14+
$this->assertTrue(in_array('...', ['...'], true), 'argument');
15+
16+
$this->assertFalse(is_readable('...'));
17+
$this->assertTrue(empty('...'));
18+
$this->assertFalse(file_exists('...'));
19+
$this->assertTrue(is_dir('...'));
20+
$this->assertFalse(is_infinite('...'));
21+
$this->assertTrue(is_nan('...'));
22+
$this->assertFalse(is_null('...'));
23+
$this->assertTrue(is_writable('...'));
24+
$this->assertFalse(array_search('...', ['...']), 'argument');
25+
$this->assertTrue(is_a($anything, 'Foo'), 'argument');
26+
$this->assertFalse(is_a($anything, Foo::class, true), 'argument');
27+
}
28+
}
29+
30+
?>

0 commit comments

Comments
 (0)