@@ -34,19 +34,19 @@ public function testConstructionAppliesBranchDefaultOnlyForDeclaringBranch(): vo
3434 $ branchA = new $ className (['kind ' => 'A ' ]);
3535 $ this ->assertNull ($ branchA ->getSandbox ());
3636 // Branch default was not applied; sandbox is absent from raw input.
37- $ this ->assertSame (['kind ' => 'A ' ], $ branchA ->getRawModelDataInput ());
37+ $ this ->assertSame (['kind ' => 'A ' ], $ branchA ->meta ()-> rawInput ());
3838
3939 // Branch 1 matches: sandbox default true is applied.
4040 $ branchB = new $ className (['kind ' => 'B ' ]);
4141 $ this ->assertTrue ($ branchB ->getSandbox ());
4242 // Default came from the branch, not the user; sandbox is absent from raw input.
43- $ this ->assertSame (['kind ' => 'B ' ], $ branchB ->getRawModelDataInput ());
43+ $ this ->assertSame (['kind ' => 'B ' ], $ branchB ->meta ()-> rawInput ());
4444
4545 // Branch 1 matches, sandbox explicitly supplied: user value is preserved.
4646 $ branchBExplicit = new $ className (['kind ' => 'B ' , 'sandbox ' => false ]);
4747 $ this ->assertFalse ($ branchBExplicit ->getSandbox ());
4848 // User supplied sandbox; it must appear in raw input.
49- $ this ->assertSame (['kind ' => 'B ' , 'sandbox ' => false ], $ branchBExplicit ->getRawModelDataInput ());
49+ $ this ->assertSame (['kind ' => 'B ' , 'sandbox ' => false ], $ branchBExplicit ->meta ()-> rawInput ());
5050 }
5151
5252 /**
@@ -64,12 +64,12 @@ public function testSetterFlipFromNonDeclaringBranchToDeclaringBranchAppliesDefa
6464
6565 $ object = new $ className (['kind ' => 'A ' ]);
6666 $ this ->assertNull ($ object ->getSandbox ());
67- $ this ->assertSame (['kind ' => 'A ' ], $ object ->getRawModelDataInput ());
67+ $ this ->assertSame (['kind ' => 'A ' ], $ object ->meta ()-> rawInput ());
6868
6969 $ object ->setKind ('B ' );
7070 $ this ->assertTrue ($ object ->getSandbox ());
7171 // The setter only writes 'kind' into raw; the branch default for sandbox is not raw input.
72- $ this ->assertSame (['kind ' => 'B ' ], $ object ->getRawModelDataInput ());
72+ $ this ->assertSame (['kind ' => 'B ' ], $ object ->meta ()-> rawInput ());
7373 }
7474
7575 /**
@@ -88,12 +88,12 @@ public function testSetterOnUnrelatedPropertyPreservesExplicitBranchDefaultValue
8888
8989 $ object = new $ className (['kind ' => 'B ' , 'sandbox ' => false ]);
9090 $ this ->assertFalse ($ object ->getSandbox ());
91- $ this ->assertSame (['kind ' => 'B ' , 'sandbox ' => false ], $ object ->getRawModelDataInput ());
91+ $ this ->assertSame (['kind ' => 'B ' , 'sandbox ' => false ], $ object ->meta ()-> rawInput ());
9292
9393 $ object ->setNote ('hello ' );
9494 $ this ->assertFalse ($ object ->getSandbox ());
9595 // After setting an unrelated property, the user-supplied sandbox is still in raw input.
96- $ this ->assertSame (['kind ' => 'B ' , 'sandbox ' => false , 'note ' => 'hello ' ], $ object ->getRawModelDataInput ());
96+ $ this ->assertSame (['kind ' => 'B ' , 'sandbox ' => false , 'note ' => 'hello ' ], $ object ->meta ()-> rawInput ());
9797 }
9898
9999 /**
@@ -113,12 +113,12 @@ public function testSetterFlipFromDeclaringBranchToNonDeclaringBranchResetsDefau
113113 $ object = new $ className (['kind ' => 'B ' ]);
114114 $ this ->assertTrue ($ object ->getSandbox ());
115115 // sandbox came from the branch default; it must not be present in raw input.
116- $ this ->assertSame (['kind ' => 'B ' ], $ object ->getRawModelDataInput ());
116+ $ this ->assertSame (['kind ' => 'B ' ], $ object ->meta ()-> rawInput ());
117117
118118 $ object ->setKind ('A ' );
119119 $ this ->assertNull ($ object ->getSandbox ());
120120 // After the branch flip, sandbox is still absent from raw input.
121- $ this ->assertSame (['kind ' => 'A ' ], $ object ->getRawModelDataInput ());
121+ $ this ->assertSame (['kind ' => 'A ' ], $ object ->meta ()-> rawInput ());
122122 }
123123
124124 /**
@@ -142,14 +142,14 @@ public function testSetterFlipToNonDeclaringBranchPreservesUserSuppliedValue():
142142 // User explicitly supplies sandbox=false (overriding the branch-1 default of true).
143143 $ object = new $ className (['kind ' => 'B ' , 'sandbox ' => false ]);
144144 $ this ->assertFalse ($ object ->getSandbox ());
145- $ this ->assertSame (['kind ' => 'B ' , 'sandbox ' => false ], $ object ->getRawModelDataInput ());
145+ $ this ->assertSame (['kind ' => 'B ' , 'sandbox ' => false ], $ object ->meta ()-> rawInput ());
146146
147147 // Switch to branch 0: sandbox is not a branch-0 default, but was user-supplied,
148148 // so it remains in _rawModelDataInput and must NOT be reset to null.
149149 $ object ->setKind ('A ' );
150150 $ this ->assertFalse ($ object ->getSandbox ());
151151 // The user-supplied sandbox survives the branch flip and remains in raw input.
152- $ this ->assertSame (['kind ' => 'A ' , 'sandbox ' => false ], $ object ->getRawModelDataInput ());
152+ $ this ->assertSame (['kind ' => 'A ' , 'sandbox ' => false ], $ object ->meta ()-> rawInput ());
153153 }
154154
155155 /**
@@ -171,18 +171,18 @@ public function testOneOfAllowsDifferingDefaultsAcrossBranches(): void
171171 $ branchA = new $ className (['kind ' => 'A ' ]);
172172 $ this ->assertSame (10 , $ branchA ->getTimeout ());
173173 // Timeout came from the branch default; absent from raw input.
174- $ this ->assertSame (['kind ' => 'A ' ], $ branchA ->getRawModelDataInput ());
174+ $ this ->assertSame (['kind ' => 'A ' ], $ branchA ->meta ()-> rawInput ());
175175
176176 // Branch B matches (kind=B): timeout=60.
177177 $ branchB = new $ className (['kind ' => 'B ' ]);
178178 $ this ->assertSame (60 , $ branchB ->getTimeout ());
179179 // Timeout came from the branch default; absent from raw input.
180- $ this ->assertSame (['kind ' => 'B ' ], $ branchB ->getRawModelDataInput ());
180+ $ this ->assertSame (['kind ' => 'B ' ], $ branchB ->meta ()-> rawInput ());
181181
182182 // User-supplied value overrides the branch default in both cases.
183183 $ branchAOverride = new $ className (['kind ' => 'A ' , 'timeout ' => 99 ]);
184184 $ this ->assertSame (99 , $ branchAOverride ->getTimeout ());
185- $ this ->assertSame (['kind ' => 'A ' , 'timeout ' => 99 ], $ branchAOverride ->getRawModelDataInput ());
185+ $ this ->assertSame (['kind ' => 'A ' , 'timeout ' => 99 ], $ branchAOverride ->meta ()-> rawInput ());
186186 }
187187
188188 /**
@@ -205,15 +205,15 @@ public function testPopulateTransitionsBetweenBranchesApplyAndRemoveBranchDefaul
205205
206206 $ object = new $ className (['kind ' => 'A ' ]);
207207 $ this ->assertNull ($ object ->getSandbox ());
208- $ this ->assertSame (['kind ' => 'A ' ], $ object ->getRawModelDataInput ());
208+ $ this ->assertSame (['kind ' => 'A ' ], $ object ->meta ()-> rawInput ());
209209
210210 $ object ->populate (['kind ' => 'B ' ]);
211211 $ this ->assertTrue ($ object ->getSandbox ());
212212 // populate() merges its input into raw; sandbox came from the branch default, not from populate().
213- $ this ->assertSame (['kind ' => 'B ' ], $ object ->getRawModelDataInput ());
213+ $ this ->assertSame (['kind ' => 'B ' ], $ object ->meta ()-> rawInput ());
214214
215215 $ object ->populate (['kind ' => 'A ' ]);
216216 $ this ->assertNull ($ object ->getSandbox ());
217- $ this ->assertSame (['kind ' => 'A ' ], $ object ->getRawModelDataInput ());
217+ $ this ->assertSame (['kind ' => 'A ' ], $ object ->meta ()-> rawInput ());
218218 }
219219}
0 commit comments