We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf85e40 commit 9f691a8Copy full SHA for 9f691a8
1 file changed
tests/ValidatorTest.php
@@ -0,0 +1,21 @@
1
+<?php
2
+
3
+namespace Webdevcave\SchemaValidator\Tests;
4
5
+use Webdevcave\SchemaValidator\Schemas\ArraySchema;
6
+use Webdevcave\SchemaValidator\Schemas\NumericSchema;
7
+use Webdevcave\SchemaValidator\Schemas\ObjectSchema;
8
+use Webdevcave\SchemaValidator\Schemas\StringSchema;
9
+use Webdevcave\SchemaValidator\Validator;
10
+use PHPUnit\Framework\TestCase;
11
12
+class ValidatorTest extends TestCase
13
+{
14
+ public function testBuilders()
15
+ {
16
+ $this->assertInstanceOf(StringSchema::class, Validator::string());
17
+ $this->assertInstanceOf(NumericSchema::class, Validator::numeric());
18
+ $this->assertInstanceOf(ObjectSchema::class, Validator::object());
19
+ $this->assertInstanceOf(ArraySchema::class, Validator::array());
20
+ }
21
+}
0 commit comments