summaryrefslogtreecommitdiff
path: root/tests/Unit/Http/Validation/Rules/NotInTest.php
blob: 9be12336bb467f57896487e71974a067f94bd347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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'));
    }
}