You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
456 B
PHTML
21 lines
456 B
PHTML
6 years ago
|
<?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
|
||
|
*/
|
||
|
public function testConstruct()
|
||
|
{
|
||
|
$rule = new NotIn('foo,bar');
|
||
|
|
||
|
$this->assertTrue($rule->validate('lorem'));
|
||
|
$this->assertFalse($rule->validate('foo'));
|
||
|
}
|
||
|
}
|