hydephp /
develop
| 1 | <?php |
||||
| 2 | |||||
| 3 | declare(strict_types=1); |
||||
| 4 | |||||
| 5 | namespace Hyde\Testing; |
||||
| 6 | |||||
| 7 | use Hyde\Hyde; |
||||
| 8 | use Illuminate\Support\Facades\File; |
||||
| 9 | |||||
| 10 | class StaticSiteBuilderTest extends TestCase |
||||
|
0 ignored issues
–
show
|
|||||
| 11 | { |
||||
| 12 | public function testCanBuildStaticSite() |
||||
| 13 | { |
||||
| 14 | File::cleanDirectory(Hyde::path('_site')); |
||||
|
0 ignored issues
–
show
The method
path() does not exist on Hyde\Hyde. Since you implemented __callStatic, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 15 | |||||
| 16 | $this->artisan('build') |
||||
| 17 | ->expectsOutputToContain('Building your static site!') |
||||
| 18 | ->assertExitCode(0); |
||||
| 19 | |||||
| 20 | File::cleanDirectory(Hyde::path('_site')); |
||||
| 21 | } |
||||
| 22 | } |
||||
| 23 |
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