File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -145,5 +145,39 @@ public function testTituloEleitor()
145145
146146 $ this ->assertTrue ($ incorrect ->fails ());
147147 }
148+
149+ public function testNis ()
150+ {
151+ $ correct = \Validator::make (
152+ ['certo ' => '201.73374.34-9 ' ],
153+ ['certo ' => 'nis ' ]
154+ );
155+
156+ $ incorrect = \Validator::make (
157+ ['errado ' => '201.73374.34-0 ' ],
158+ ['errado ' => 'nis ' ]
159+ );
160+
161+ $ this ->assertTrue ($ correct ->passes ());
162+
163+ $ this ->assertTrue ($ incorrect ->fails ());
164+ }
165+
166+ public function testNisormato ()
167+ {
168+ $ correct = \Validator::make (
169+ ['certo ' => '201.73374.34-9 ' ],
170+ ['certo ' => 'formato-nis ' ]
171+ );
172+
173+ $ incorrect = \Validator::make (
174+ ['errado ' => '201.733.7434-9 ' ],
175+ ['errado ' => 'formato-nis ' ]
176+ );
177+
178+ $ this ->assertTrue ($ correct ->passes ());
179+
180+ $ this ->assertTrue ($ incorrect ->fails ());
181+ }
148182
149183}
You can’t perform that action at this time.
0 commit comments