Do not use the test class to test the Callback rule

That will help us later because, on PHPUnit 10, all data providers need
to be static.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
Henrique Moody 2023-04-02 15:29:53 +02:00
parent 445af454fd
commit 049b0b27ae
No known key found for this signature in database
GPG key ID: 221E9281655813A6

View file

@ -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}
*/