File tree Expand file tree Collapse file tree 20 files changed +1134
-0
lines changed
Expand file tree Collapse file tree 20 files changed +1134
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace Tests \Cache \NotWhen \Arrayables \Many \Arr ;
6+
7+ use Tests \Cache \NotWhen \BaseTest ;
8+ use Tests \Fixtures \Many \DragonCodeArrayable ;
9+
10+ class DragonCodeTest extends BaseTest
11+ {
12+ protected $ value = [
13+ 'foo ' => 'Foo ' ,
14+ 'bar ' => 'Bar ' ,
15+ 'baz ' => [
16+ 'foo ' => 'Foo ' ,
17+ 'bar ' => 'Bar ' ,
18+ ],
19+ ];
20+
21+ public function testGet ()
22+ {
23+ $ this ->assertNull ($ this ->cache ()->get ());
24+
25+ $ this ->cache ()->put (new DragonCodeArrayable ());
26+
27+ $ this ->assertNull ($ this ->cache ()->get ());
28+ }
29+
30+ public function testPut ()
31+ {
32+ $ this ->assertSame ($ this ->value , $ this ->cache ()->put (new DragonCodeArrayable ()));
33+
34+ $ this ->assertNull ($ this ->cache ()->get ());
35+ }
36+
37+ public function testForget ()
38+ {
39+ $ this ->assertNull ($ this ->cache ()->get ());
40+
41+ $ this ->cache ()->put (new DragonCodeArrayable ());
42+
43+ $ this ->cache ()->forget ();
44+
45+ $ this ->assertNull ($ this ->cache ()->get ());
46+ }
47+
48+ public function testHas ()
49+ {
50+ $ this ->assertFalse ($ this ->cache ()->has ());
51+
52+ $ this ->cache ()->put (new DragonCodeArrayable ());
53+
54+ $ this ->assertFalse ($ this ->cache ()->has ());
55+ }
56+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace Tests \Cache \NotWhen \Arrayables \Many \Arr ;
6+
7+ use Tests \Cache \NotWhen \BaseTest ;
8+ use Tests \Fixtures \Many \IlluminateArrayable ;
9+
10+ class IlluminateTest extends BaseTest
11+ {
12+ protected $ value = [
13+ 'foo ' => 'Foo ' ,
14+ 'bar ' => 'Bar ' ,
15+ 'baz ' => [
16+ 'foo ' => 'Foo ' ,
17+ 'bar ' => 'Bar ' ,
18+ ],
19+ ];
20+
21+ public function testGet ()
22+ {
23+ $ this ->assertNull ($ this ->cache ()->get ());
24+
25+ $ this ->cache ()->put (new IlluminateArrayable ());
26+
27+ $ this ->assertNull ($ this ->cache ()->get ());
28+ }
29+
30+ public function testPut ()
31+ {
32+ $ this ->assertSame ($ this ->value , $ this ->cache ()->put (new IlluminateArrayable ()));
33+
34+ $ this ->assertNull ($ this ->cache ()->get ());
35+ }
36+
37+ public function testForget ()
38+ {
39+ $ this ->assertNull ($ this ->cache ()->get ());
40+
41+ $ this ->cache ()->put (new IlluminateArrayable ());
42+
43+ $ this ->cache ()->forget ();
44+
45+ $ this ->assertNull ($ this ->cache ()->get ());
46+ }
47+
48+ public function testHas ()
49+ {
50+ $ this ->assertFalse ($ this ->cache ()->has ());
51+
52+ $ this ->cache ()->put (new IlluminateArrayable ());
53+
54+ $ this ->assertFalse ($ this ->cache ()->has ());
55+ }
56+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace Tests \Cache \NotWhen \Arrayables \Many \Arr ;
6+
7+ use Tests \Cache \NotWhen \BaseTest ;
8+ use Tests \Fixtures \Many \MixedArrayable ;
9+
10+ class MixedTest extends BaseTest
11+ {
12+ protected $ value = [
13+ 'foo ' => 'Foo ' ,
14+ 'bar ' => 'Bar ' ,
15+ 'baz ' => [
16+ 'foo ' => 'Foo ' ,
17+ 'bar ' => 'Bar ' ,
18+ ],
19+ 'baq ' => [
20+ 'foo ' => 'Foo ' ,
21+ 'bar ' => 'Bar ' ,
22+ ],
23+ ];
24+
25+ public function testGet ()
26+ {
27+ $ this ->assertNull ($ this ->cache ()->get ());
28+
29+ $ this ->cache ()->put (new MixedArrayable ());
30+
31+ $ this ->assertNull ($ this ->cache ()->get ());
32+ }
33+
34+ public function testPut ()
35+ {
36+ $ this ->assertSame ($ this ->value , $ this ->cache ()->put (new MixedArrayable ()));
37+
38+ $ this ->assertNull ($ this ->cache ()->get ());
39+ }
40+
41+ public function testForget ()
42+ {
43+ $ this ->assertNull ($ this ->cache ()->get ());
44+
45+ $ this ->cache ()->put (new MixedArrayable ());
46+
47+ $ this ->cache ()->forget ();
48+
49+ $ this ->assertNull ($ this ->cache ()->get ());
50+ }
51+
52+ public function testHas ()
53+ {
54+ $ this ->assertFalse ($ this ->cache ()->has ());
55+
56+ $ this ->cache ()->put (new MixedArrayable ());
57+
58+ $ this ->assertFalse ($ this ->cache ()->has ());
59+ }
60+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace Tests \Cache \NotWhen \Arrayables \Many \Files ;
6+
7+ use Tests \Cache \NotWhen \BaseTest ;
8+ use Tests \Fixtures \Many \DragonCodeArrayable ;
9+
10+ class DragonCodeTest extends BaseTest
11+ {
12+ protected $ cache = 'file ' ;
13+
14+ protected $ value = [
15+ 'foo ' => 'Foo ' ,
16+ 'bar ' => 'Bar ' ,
17+ 'baz ' => [
18+ 'foo ' => 'Foo ' ,
19+ 'bar ' => 'Bar ' ,
20+ ],
21+ ];
22+
23+ public function testGet ()
24+ {
25+ $ this ->assertNull ($ this ->cache ()->get ());
26+
27+ $ this ->cache ()->put (new DragonCodeArrayable ());
28+
29+ $ this ->assertNull ($ this ->cache ()->get ());
30+ }
31+
32+ public function testPut ()
33+ {
34+ $ this ->assertSame ($ this ->value , $ this ->cache ()->put (new DragonCodeArrayable ()));
35+
36+ $ this ->assertNull ($ this ->cache ()->get ());
37+ }
38+
39+ public function testForget ()
40+ {
41+ $ this ->assertNull ($ this ->cache ()->get ());
42+
43+ $ this ->cache ()->put (new DragonCodeArrayable ());
44+
45+ $ this ->cache ()->forget ();
46+
47+ $ this ->assertNull ($ this ->cache ()->get ());
48+ }
49+
50+ public function testHas ()
51+ {
52+ $ this ->assertFalse ($ this ->cache ()->has ());
53+
54+ $ this ->cache ()->put (new DragonCodeArrayable ());
55+
56+ $ this ->assertFalse ($ this ->cache ()->has ());
57+ }
58+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace Tests \Cache \NotWhen \Arrayables \Many \Files ;
6+
7+ use Tests \Cache \NotWhen \BaseTest ;
8+ use Tests \Fixtures \Many \IlluminateArrayable ;
9+
10+ class IlluminateTest extends BaseTest
11+ {
12+ protected $ cache = 'file ' ;
13+
14+ protected $ value = [
15+ 'foo ' => 'Foo ' ,
16+ 'bar ' => 'Bar ' ,
17+ 'baz ' => [
18+ 'foo ' => 'Foo ' ,
19+ 'bar ' => 'Bar ' ,
20+ ],
21+ ];
22+
23+ public function testGet ()
24+ {
25+ $ this ->assertNull ($ this ->cache ()->get ());
26+
27+ $ this ->cache ()->put (new IlluminateArrayable ());
28+
29+ $ this ->assertNull ($ this ->cache ()->get ());
30+ }
31+
32+ public function testPut ()
33+ {
34+ $ this ->assertSame ($ this ->value , $ this ->cache ()->put (new IlluminateArrayable ()));
35+
36+ $ this ->assertNull ($ this ->cache ()->get ());
37+ }
38+
39+ public function testForget ()
40+ {
41+ $ this ->assertNull ($ this ->cache ()->get ());
42+
43+ $ this ->cache ()->put (new IlluminateArrayable ());
44+
45+ $ this ->cache ()->forget ();
46+
47+ $ this ->assertNull ($ this ->cache ()->get ());
48+ }
49+
50+ public function testHas ()
51+ {
52+ $ this ->assertFalse ($ this ->cache ()->has ());
53+
54+ $ this ->cache ()->put (new IlluminateArrayable ());
55+
56+ $ this ->assertFalse ($ this ->cache ()->has ());
57+ }
58+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace Tests \Cache \NotWhen \Arrayables \Many \Files ;
6+
7+ use Tests \Cache \NotWhen \BaseTest ;
8+ use Tests \Fixtures \Many \MixedArrayable ;
9+
10+ class MixedTest extends BaseTest
11+ {
12+ protected $ cache = 'file ' ;
13+
14+ protected $ value = [
15+ 'foo ' => 'Foo ' ,
16+ 'bar ' => 'Bar ' ,
17+ 'baz ' => [
18+ 'foo ' => 'Foo ' ,
19+ 'bar ' => 'Bar ' ,
20+ ],
21+ 'baq ' => [
22+ 'foo ' => 'Foo ' ,
23+ 'bar ' => 'Bar ' ,
24+ ],
25+ ];
26+
27+ public function testGet ()
28+ {
29+ $ this ->assertNull ($ this ->cache ()->get ());
30+
31+ $ this ->cache ()->put (new MixedArrayable ());
32+
33+ $ this ->assertNull ($ this ->cache ()->get ());
34+ }
35+
36+ public function testPut ()
37+ {
38+ $ this ->assertSame ($ this ->value , $ this ->cache ()->put (new MixedArrayable ()));
39+
40+ $ this ->assertNull ($ this ->cache ()->get ());
41+ }
42+
43+ public function testForget ()
44+ {
45+ $ this ->assertNull ($ this ->cache ()->get ());
46+
47+ $ this ->cache ()->put (new MixedArrayable ());
48+
49+ $ this ->cache ()->forget ();
50+
51+ $ this ->assertNull ($ this ->cache ()->get ());
52+ }
53+
54+ public function testHas ()
55+ {
56+ $ this ->assertFalse ($ this ->cache ()->has ());
57+
58+ $ this ->cache ()->put (new MixedArrayable ());
59+
60+ $ this ->assertFalse ($ this ->cache ()->has ());
61+ }
62+ }
You can’t perform that action at this time.
0 commit comments