diff --git a/tests/unit/Rules/CallbackTest.php b/tests/unit/Rules/CallbackTest.php index 0fb67ddb..440150fe 100644 --- a/tests/unit/Rules/CallbackTest.php +++ b/tests/unit/Rules/CallbackTest.php @@ -32,7 +32,7 @@ final class CallbackTest extends RuleTestCase { return [ [new Callback('is_a', 'stdClass'), new stdClass()], - [new Callback([$this, 'sampleCallbackUsedInsideThisTest']), 'test'], + [new Callback([new AlwaysValid(), 'validate']), 'test'], [new Callback('is_string'), 'test'], [ new Callback(static function () { @@ -43,11 +43,6 @@ final class CallbackTest extends RuleTestCase ]; } - public function sampleCallbackUsedInsideThisTest(): bool - { - return true; - } - /** * {@inheritDoc} */