File tree Expand file tree Collapse file tree 3 files changed +160
-155
lines changed Expand file tree Collapse file tree 3 files changed +160
-155
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ parameters :
2+ paths :
3+ - ./src/
4+ - ./vendor/codeigniter4/framework/system/
5+ exclude_files :
6+ - ' #.*test.*#i'
7+ layers :
8+ - name : Model
9+ collectors :
10+ - type : bool
11+ must :
12+ - type : className
13+ regex : .*[A-Za-z]+Model$
14+ must_not :
15+ - type : directory
16+ regex : vendor/.*
17+ - name : Vendor Model
18+ collectors :
19+ - type : bool
20+ must :
21+ - type : className
22+ regex : .*[A-Za-z]+Model$
23+ - type : directory
24+ regex : vendor/.*
25+ - name : Controller
26+ collectors :
27+ - type : bool
28+ must :
29+ - type : className
30+ regex : .*\/Controllers\/.*
31+ must_not :
32+ - type : directory
33+ regex : vendor/.*
34+ - name : Vendor Controller
35+ collectors :
36+ - type : bool
37+ must :
38+ - type : className
39+ regex : .*\/Controllers\/.*
40+ - type : directory
41+ regex : vendor/.*
42+ - name : Config
43+ collectors :
44+ - type : bool
45+ must :
46+ - type : directory
47+ regex : src/Config/.*
48+ must_not :
49+ - type : className
50+ regex : .*Services
51+ - type : directory
52+ regex : vendor/.*
53+ - name : Vendor Config
54+ collectors :
55+ - type : bool
56+ must :
57+ - type : directory
58+ regex : vendor/.*/Config/.*
59+ must_not :
60+ - type : className
61+ regex : .*Services
62+ - name : Entity
63+ collectors :
64+ - type : bool
65+ must :
66+ - type : directory
67+ regex : src/Entities/.*
68+ must_not :
69+ - type : directory
70+ regex : vendor/.*
71+ - name : Vendor Entity
72+ collectors :
73+ - type : bool
74+ must :
75+ - type : directory
76+ regex : vendor/.*/Entities/.*
77+ - name : View
78+ collectors :
79+ - type : bool
80+ must :
81+ - type : directory
82+ regex : src/Views/.*
83+ must_not :
84+ - type : directory
85+ regex : vendor/.*
86+ - name : Vendor View
87+ collectors :
88+ - type : bool
89+ must :
90+ - type : directory
91+ regex : vendor/.*/Views/.*
92+ - name : Service
93+ collectors :
94+ - type : className
95+ regex : .*Services.*
96+ ruleset :
97+ Entity :
98+ - Config
99+ - Model
100+ - Service
101+ - Vendor Config
102+ - Vendor Entity
103+ - Vendor Model
104+ Config :
105+ - Service
106+ - Vendor Config
107+ Model :
108+ - Config
109+ - Entity
110+ - Service
111+ - Vendor Config
112+ - Vendor Entity
113+ - Vendor Model
114+ Service :
115+ - Config
116+ - Vendor Config
117+
118+ # Ignore anything in the Vendor layers
119+ Vendor Model :
120+ - Config
121+ - Service
122+ - Vendor Config
123+ - Vendor Controller
124+ - Vendor Entity
125+ - Vendor Model
126+ - Vendor View
127+ Vendor Controller :
128+ - Service
129+ - Vendor Config
130+ - Vendor Controller
131+ - Vendor Entity
132+ - Vendor Model
133+ - Vendor View
134+ Vendor Config :
135+ - Config
136+ - Service
137+ - Vendor Config
138+ - Vendor Controller
139+ - Vendor Entity
140+ - Vendor Model
141+ - Vendor View
142+ Vendor Entity :
143+ - Service
144+ - Vendor Config
145+ - Vendor Controller
146+ - Vendor Entity
147+ - Vendor Model
148+ - Vendor View
149+ Vendor View :
150+ - Service
151+ - Vendor Config
152+ - Vendor Controller
153+ - Vendor Entity
154+ - Vendor Model
155+ - Vendor View
156+ skip_violations :
Original file line number Diff line number Diff line change 22
33use Tatter \Schemas \Reader \Handlers \CacheHandler as CacheReader ;
44use Tatter \Schemas \Structures \Schema ;
5+ use Tatter \Schemas \Structures \Table ;
56use Tests \Support \CacheTrait ;
67use Tests \Support \MockSchemaTrait ;
78use Tests \Support \SchemasTestCase ;
@@ -41,6 +42,9 @@ public function testReaderHasScaffold()
4142
4243 public function testReaderMagicGetsTable ()
4344 {
45+ $ table = $ this ->reader ->workers ;
46+ $ this ->assertInstanceOf (Table::class, $ table );
47+
4448 $ expected = [
4549 'factories ' => true ,
4650 'machines ' => true ,
You can’t perform that action at this time.
0 commit comments