44
55namespace Flow \ETL \Tests \Integration \DataFrame ;
66
7- use function Flow \ETL \DSL \{data_frame , from_array , ref , to_memory };
7+ use function Flow \ETL \DSL \{data_frame , execution_strict , from_array , ref , to_memory };
88use Flow \ETL \Exception \InvalidArgumentException ;
9- use Flow \ETL \Function \ExecutionMode ;
109use Flow \ETL \Memory \ArrayMemory ;
1110use Flow \ETL \Tests \FlowTestCase ;
1211
@@ -80,7 +79,7 @@ public function test_strict_mode_throws_exception_on_invalid_data() : void
8079 ['id ' => 3 , 'name ' => 'Jane ' ],
8180 ])
8281 )
83- ->mode (ExecutionMode:: STRICT )
82+ ->mode (execution_strict () )
8483 ->withEntry ('starts_with_j ' , ref ('name ' )->startsWith ('J ' ))
8584 ->fetch ();
8685 }
@@ -96,7 +95,7 @@ public function test_strict_mode_with_cast() : void
9695 ['value ' => null ],
9796 ])
9897 )
99- ->mode (ExecutionMode:: STRICT )
98+ ->mode (execution_strict () )
10099 ->withEntry ('value_int ' , ref ('value ' )->cast ('int ' ))
101100 ->fetch ();
102101 }
@@ -113,7 +112,7 @@ public function test_strict_mode_with_index_of() : void
113112 ['text ' => null ],
114113 ])
115114 )
116- ->mode (ExecutionMode:: STRICT )
115+ ->mode (execution_strict () )
117116 ->withEntry ('pos ' , ref ('text ' )->indexOf ('world ' ))
118117 ->fetch ();
119118 }
@@ -130,7 +129,7 @@ public function test_strict_mode_with_json_decode() : void
130129 ['json ' => null ],
131130 ])
132131 )
133- ->mode (ExecutionMode:: STRICT )
132+ ->mode (execution_strict () )
134133 ->withEntry ('decoded ' , ref ('json ' )->jsonDecode ())
135134 ->fetch ();
136135 }
0 commit comments