File tree Expand file tree Collapse file tree 4 files changed +92
-2
lines changed
Expand file tree Collapse file tree 4 files changed +92
-2
lines changed Original file line number Diff line number Diff line change 2626 "adlawson/vfs" : " ^0.12.1" ,
2727 "phpstan/phpstan" : " ^0.12.93" ,
2828 "php-etl/sql-flow" : " ^0.1.0" ,
29- "friendsofphp/php-cs-fixer" : " ^3.0"
29+ "friendsofphp/php-cs-fixer" : " ^3.0" ,
30+ "mikey179/vfsstream" : " ^1.6"
3031 },
3132 "autoload" : {
3233 "psr-4" : {
Original file line number Diff line number Diff line change 55use Kiboko \Component \PHPUnitExtension \Assert ;
66use Kiboko \Contract \Pipeline \PipelineRunnerInterface ;
77use Kiboko \Plugin \SQL \Factory \Extractor ;
8+ use org \bovigo \vfs \vfsStream ;
9+ use org \bovigo \vfs \vfsStreamDirectory ;
810use PHPUnit \Framework \TestCase ;
911use Symfony \Component \ExpressionLanguage \Expression ;
1012use Symfony \Component \ExpressionLanguage \ExpressionLanguage ;
@@ -14,6 +16,23 @@ final class ExtractorTest extends TestCase
1416 use Assert \PipelineBuilderAssertTrait;
1517 use Assert \ExtractorBuilderAssertTrait;
1618
19+ private ?vfsStreamDirectory $ fs = null ;
20+
21+ protected function setUp (): void
22+ {
23+ $ this ->fs = vfsStream::setup ();
24+ }
25+
26+ protected function tearDown (): void
27+ {
28+ $ this ->fs = null ;
29+ }
30+
31+ protected function getBuilderCompilePath (): string
32+ {
33+ return $ this ->fs ->url ();
34+ }
35+
1736 public function testValidatingConfiguration (): void
1837 {
1938 $ extractor = new Extractor (new ExpressionLanguage ());
Original file line number Diff line number Diff line change 55use Kiboko \Component \PHPUnitExtension \Assert ;
66use Kiboko \Contract \Pipeline \PipelineRunnerInterface ;
77use Kiboko \Plugin \SQL \Factory \Loader ;
8+ use org \bovigo \vfs \vfsStream ;
9+ use org \bovigo \vfs \vfsStreamDirectory ;
810use PHPUnit \Framework \TestCase ;
911use Symfony \Component \ExpressionLanguage \Expression ;
1012use Symfony \Component \ExpressionLanguage \ExpressionLanguage ;
@@ -14,6 +16,23 @@ final class LoaderTest extends TestCase
1416 use Assert \PipelineBuilderAssertTrait;
1517 use Assert \ExtractorBuilderAssertTrait;
1618
19+ private ?vfsStreamDirectory $ fs = null ;
20+
21+ protected function setUp (): void
22+ {
23+ $ this ->fs = vfsStream::setup ();
24+ }
25+
26+ protected function tearDown (): void
27+ {
28+ $ this ->fs = null ;
29+ }
30+
31+ protected function getBuilderCompilePath (): string
32+ {
33+ return $ this ->fs ->url ();
34+ }
35+
1736 public function testValidatingConfiguration (): void
1837 {
1938 $ extractor = new Loader (new ExpressionLanguage ());
You can’t perform that action at this time.
0 commit comments