2019-07-10 13:34:15 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Engelsystem\Test\Unit\Http\Validation\Rules;
|
|
|
|
|
|
|
|
use Engelsystem\Http\Validation\Rules\NotIn;
|
|
|
|
use Engelsystem\Test\Unit\TestCase;
|
|
|
|
|
|
|
|
class NotInTest extends TestCase
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @covers \Engelsystem\Http\Validation\Rules\NotIn::validate
|
|
|
|
*/
|
2022-12-14 19:15:20 +01:00
|
|
|
public function testConstruct(): void
|
2019-07-10 13:34:15 +02:00
|
|
|
{
|
|
|
|
$rule = new NotIn('foo,bar');
|
|
|
|
|
|
|
|
$this->assertTrue($rule->validate('lorem'));
|
|
|
|
$this->assertFalse($rule->validate('foo'));
|
|
|
|
}
|
|
|
|
}
|