Skip to content

Commit cf44e16

Browse files
committed
use withoutSnippets() on some tests
1 parent 3c7e3d0 commit cf44e16

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/SearcherTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public function it_searches_code_strings()
1717
$searcher = new Searcher();
1818

1919
$results = $searcher
20+
->withoutSnippets()
2021
->functions(['strtolower', 'strtoupper'])
2122
->searchCode('<?' . "php \n\$myVar = strtolower('test');\n");
2223

@@ -30,12 +31,14 @@ public function it_searches_for_function_calls()
3031
$file = new File(tests_path('data/file1.php'));
3132

3233
$results = $searcher
34+
->withoutSnippets()
3335
->functions(['strtolower', 'strtoupper'])
3436
->search($file);
3537

3638
$this->assertMatchesSnapshot($results->results);
3739

3840
$results = $searcher
41+
->withoutSnippets()
3942
->functions(['strtoupper', 'printf', 'strtolower'])
4043
->search($file);
4144

0 commit comments

Comments
 (0)