Skip to content

Commit 1bd14f5

Browse files
committed
Fixing the PHPUnit tests
1 parent 029bd6a commit 1bd14f5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

tests/functional/ServiceTest.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,32 @@
55
use Kiboko\Component\PHPUnitExtension\Assert;
66
use Kiboko\Contract\Pipeline\PipelineRunnerInterface;
77
use Kiboko\Plugin\SQL\Service;
8+
use org\bovigo\vfs\vfsStream;
9+
use org\bovigo\vfs\vfsStreamDirectory;
810
use PHPUnit\Framework\TestCase;
911
use Symfony\Component\ExpressionLanguage\Expression;
10-
use Vfs\FileSystem;
1112

1213
final class ServiceTest extends TestCase
1314
{
1415
use Assert\ExtractorBuilderAssertTrait;
1516
use Assert\TransformerBuilderAssertTrait;
1617
use Assert\LoaderBuilderAssertTrait;
1718

18-
private ?FileSystem $vfs = null;
19+
private ?vfsStreamDirectory $fs = null;
1920

2021
protected function setUp(): void
2122
{
22-
$this->vfs = FileSystem::factory();
23-
$this->vfs->mount();
23+
$this->fs = vfsStream::setup();
2424
}
2525

2626
protected function tearDown(): void
2727
{
28-
$this->vfs?->unmount();
28+
$this->fs = null;
29+
}
30+
31+
protected function getBuilderCompilePath(): string
32+
{
33+
return $this->fs->url();
2934
}
3035

3136
public function testValidatingExtractorConfiguration(): void

0 commit comments

Comments
 (0)