Skip to content

Commit 99098fc

Browse files
authored
fix namespace/use statement tests
1 parent 3d3107c commit 99098fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/cc/engine/analyzers/php/main_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
create_source_file("foo.php", <<~EOPHP)
170170
<?php
171171
namespace KeepClear\\Http\\Controllers\\API\\V1;
172+
172173
use Illuminate\\Http\\Request;
173174
use KeepClear\\Http\\Controllers\\Controller;
174175
use KeepClear\\Models\\Comment;
@@ -177,12 +178,14 @@
177178
use KeepClear\\Traits\\Controllers\\ApiFilter;
178179
use KeepClear\\Traits\\Controllers\\ApiParseBody;
179180
use KeepClear\\Traits\\Controllers\\ApiException;
181+
180182
a / b;
181183
EOPHP
182184

183185
create_source_file("bar.php", <<~EOPHP)
184186
<?php
185187
namespace KeepClear\\Http\\Controllers\\API\\V1;
188+
186189
use Illuminate\\Http\\Request;
187190
use KeepClear\\Http\\Controllers\\Controller;
188191
use KeepClear\\Models\\Comment;
@@ -191,6 +194,7 @@
191194
use KeepClear\\Traits\\Controllers\\ApiFilter;
192195
use KeepClear\\Traits\\Controllers\\ApiParseBody;
193196
use KeepClear\\Traits\\Controllers\\ApiException;
197+
194198
a + b;
195199
EOPHP
196200

0 commit comments

Comments
 (0)