summaryrefslogtreecommitdiff
path: root/tests/Unit/Http/Validation/Rules/InTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-07-10 13:34:15 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-07-10 13:34:15 +0200
commit6743106d9a8c760580690aab704f908766731801 (patch)
tree36dd2333d4148cb593e9f7fb3790740605cd1f12 /tests/Unit/Http/Validation/Rules/InTest.php
parent6d5ada252202bfb29eba884cf9567e969d798607 (diff)
Replaced validation with `respect/validation`
Diffstat (limited to 'tests/Unit/Http/Validation/Rules/InTest.php')
-rw-r--r--tests/Unit/Http/Validation/Rules/InTest.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/Unit/Http/Validation/Rules/InTest.php b/tests/Unit/Http/Validation/Rules/InTest.php
new file mode 100644
index 00000000..e5688d90
--- /dev/null
+++ b/tests/Unit/Http/Validation/Rules/InTest.php
@@ -0,0 +1,19 @@
+<?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
+ */
+ public function testConstruct()
+ {
+ $rule = new In('foo,bar');
+
+ $this->assertEquals(['foo', 'bar'], $rule->haystack);
+ }
+}