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