File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ /*
4
+ * This file is part of https://github.com/laravel-validation-rules/timezone
5
+ *
6
+ * (c) Scott Wilcox <scott@dor.ky>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ *
11
+ */
12
+
3
13
namespace App \Rules ;
4
14
5
15
use DateTimeZone ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ /*
4
+ * This file is part of https://github.com/laravel-validation-rules/timezone
5
+ *
6
+ * (c) Scott Wilcox <scott@dor.ky>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ *
11
+ */
12
+
3
13
namespace Tests ;
4
14
5
15
use App \Rules \Timezone ;
12
22
13
23
final class TimezoneTest extends TestCase
14
24
{
15
-
16
- public function buildValidator ( $ timezone ) {
25
+ public function buildValidator ( $ timezone )
26
+ {
17
27
$ app = new Container ();
18
28
$ app ->singleton ('app ' , 'Illuminate\Container\Container ' );
19
29
$ translator = new Translator (new FileLoader (new Filesystem (), null ), 'en ' );
@@ -43,6 +53,4 @@ public function testInvalidTimezoneFails()
43
53
$ validator = $ this ->buildValidator ("Bob/Dole " );
44
54
$ this ->assertTrue ($ validator ->fails ());
45
55
}
46
-
47
-
48
56
}
You can’t perform that action at this time.
0 commit comments