Skip to content

Commit

Permalink
fix namespace/use statement tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkruss committed Jul 20, 2018
1 parent 3d3107c commit 99098fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/cc/engine/analyzers/php/main_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
create_source_file("foo.php", <<~EOPHP)
<?php
namespace KeepClear\\Http\\Controllers\\API\\V1;
use Illuminate\\Http\\Request;
use KeepClear\\Http\\Controllers\\Controller;
use KeepClear\\Models\\Comment;
Expand All @@ -177,12 +178,14 @@
use KeepClear\\Traits\\Controllers\\ApiFilter;
use KeepClear\\Traits\\Controllers\\ApiParseBody;
use KeepClear\\Traits\\Controllers\\ApiException;
a / b;
EOPHP

create_source_file("bar.php", <<~EOPHP)
<?php
namespace KeepClear\\Http\\Controllers\\API\\V1;
use Illuminate\\Http\\Request;
use KeepClear\\Http\\Controllers\\Controller;
use KeepClear\\Models\\Comment;
Expand All @@ -191,6 +194,7 @@
use KeepClear\\Traits\\Controllers\\ApiFilter;
use KeepClear\\Traits\\Controllers\\ApiParseBody;
use KeepClear\\Traits\\Controllers\\ApiException;
a + b;
EOPHP

Expand Down

0 comments on commit 99098fc

Please sign in to comment.