Skip to content

Commit 69246d2

Browse files
authored
Create assert_true_to_greater_than.php.inc
Fixture to test proper refactoring of PHPUnit assertion.
1 parent a7a28a2 commit 69246d2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
namespace Rector\Tests\PHPUnit\CodeQuality\Rector\MethodCall\AssertComparisonToSpecificMethodRector\Fixture;
3+
4+
use PHPUnit\Framework\TestCase;
5+
6+
final class AssertTrueToGreaterThan extends TestCase
7+
{
8+
public function some(int $param)
9+
{
10+
self::assertTrue(0 < $param);
11+
}
12+
13+
}
14+
?>
15+
-----
16+
<?php
17+
18+
namespace Rector\Tests\PHPUnit\CodeQuality\Rector\MethodCall\AssertComparisonToSpecificMethodRector\Fixture;
19+
20+
use PHPUnit\Framework\TestCase;
21+
22+
final class AssertTrueToGreaterThan extends TestCase
23+
{
24+
public function some(int $param)
25+
{
26+
self::assertGreaterThan(0, $param);
27+
}
28+
}
29+
30+
?>

0 commit comments

Comments
 (0)