| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Give\Vendors\StellarWP\Validation\Tests\Unit\Rules; |
| 6 |
|
| 7 |
use Give\Vendors\StellarWP\Validation\Commands\ExcludeValue; |
| 8 |
use Give\Vendors\StellarWP\Validation\Rules\Exclude; |
| 9 |
use Give\Vendors\StellarWP\Validation\Tests\TestCase; |
| 10 |
|
| 11 |
class ExcludeTest extends TestCase |
| 12 |
{ |
| 13 |
/** |
| 14 |
* @since 1.2.0 |
| 15 |
*/ |
| 16 |
public function testShouldReturnExcludedValueWhenUsed() |
| 17 |
{ |
| 18 |
$exclude = new Exclude(); |
| 19 |
|
| 20 |
self::assertInstanceOf(ExcludeValue::class, $exclude(null, function() {}, 'foo', [])); |
| 21 |
} |
| 22 |
} |
| 23 |
|