1 | <?php |
||
2 | |||
3 | namespace Graze\Morphism\Test\Parse; |
||
4 | |||
5 | use \Graze\Morphism\Parse\Token; |
||
0 ignored issues
–
show
|
|||
6 | use \Graze\Morphism\Parse\TokenStream; |
||
0 ignored issues
–
show
The type
\Graze\Morphism\Parse\TokenStream was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
7 | use PHPUnit\Framework\TestCase as PHPUnitTestCase; |
||
8 | |||
9 | class TestCase extends PHPUnitTestCase |
||
10 | { |
||
11 | /** @var bool */ |
||
12 | protected $oldQuoteNames; |
||
13 | |||
14 | public function setUp() |
||
15 | { |
||
16 | $this->oldQuoteNames = Token::getQuoteNames(); |
||
17 | Token::setQuoteNames(true); |
||
18 | } |
||
19 | |||
20 | public function tearDown() |
||
21 | { |
||
22 | Token::setQuoteNames($this->oldQuoteNames); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param string $text |
||
27 | * @return TokenStream |
||
28 | */ |
||
29 | public function makeStream($text) |
||
30 | { |
||
31 | return TokenStream::newFromFile("data://text/plain;base64," . base64_encode($text)); |
||
32 | } |
||
33 | } |
||
34 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths