diff --git a/tests/MainTest.php b/tests/MainTest.php index e48d57f..537116e 100644 --- a/tests/MainTest.php +++ b/tests/MainTest.php @@ -33,6 +33,15 @@ public function setUp() $this->fileService->init(); } + /** Test configuration of inner file service */ + public function testConfigure() + { + require(__DIR__.'/TestEntityConfig.php'); + $this->fileService->configure(new TestEntityConfig()); + + $this->assertArrayHasKey('testParam', $this->fileService->configuration); + } + /** Test isDir */ public function testIsDir() { diff --git a/tests/TestEntityConfig.php b/tests/TestEntityConfig.php new file mode 100644 index 0000000..5486d0d --- /dev/null +++ b/tests/TestEntityConfig.php @@ -0,0 +1,15 @@ +