Permalink
Browse files

return all tests to phpunit

  • Loading branch information...
TomasVotruba committed May 30, 2017
1 parent 88c2e0c commit 4b47fc1b7e742bc8caec44490992b08d34db1cb0
Showing with 10 additions and 9 deletions.
  1. +2 −6 phpunit.xml
  2. +8 −3 tests/Generator/GeneratorQueueTest.php
View
@@ -5,16 +5,12 @@
>
<testsuite>
<directory>packages/*/tests</directory>
<directory>tests/Generator</directory>
<directory>tests/Configuration</directory>
<directory>tests/Templating</directory>
<directory>tests/Utils</directory>
<directory>tests</directory>
</testsuite>
<filter>
<whitelist>
<directory>packages/*/src</directory>
<directory>src/Generator</directory>
<directory>src/Configuration</directory>
<directory>src</directory>
</whitelist>
</filter>
</phpunit>
@@ -17,9 +17,7 @@
protected function setUp(): void
{
/** @var OutputInterface $output */
$output = $this->container->getByType(OutputInterface::class);
$output->setVerbosity(0);
$this->disableOutputForProgressBar();
$this->generatorQueue = $this->container->getByType(GeneratorQueue::class);
}
@@ -36,4 +34,11 @@ public function testRun(): void
$this->assertFileExists(TEMP_DIR . '/file.txt');
}
protected function disableOutputForProgressBar(): void
{
/** @var OutputInterface $output */
$output = $this->container->getByType(OutputInterface::class);
$output->setVerbosity(0);
}
}

0 comments on commit 4b47fc1

Please sign in to comment.