Skip to content

Commit

Permalink
Remove uneeded PHPStan ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Feb 21, 2019
1 parent 7e4945c commit 11aa10a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
6 changes: 0 additions & 6 deletions phpstan.neon
@@ -1,14 +1,8 @@
parameters:
ignoreErrors:
- '/does not call parent constructor from PHPUnit\\Util\\Printer/'
# needed with Symfony <3.3
- '/Call to function is_array\(\) with string will always evaluate to false./'
- '/Class Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher not found/'
- '/Call to function method_exists.. with .Tests..BaseTestCase. and .assertStringContain.... will always evaluate to false./'
excludes_analyse:
# needed with PHPUnit 6
- src/Paraunit/Parser/JSON/LogPrinterV6.php
- src/Paraunit/Process/ProcessBuilderFactory.php
- tests/Stub/ParseErrorTestStub.php
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
Expand Down
11 changes: 0 additions & 11 deletions tests/Unit/Process/ProcessFactoryTest.php
Expand Up @@ -9,21 +9,10 @@
use Paraunit\Process\AbstractParaunitProcess;
use Paraunit\Process\CommandLine;
use Paraunit\Process\ProcessFactory;
use Symfony\Component\Process\Process;
use Tests\BaseUnitTestCase;

class ProcessFactoryTest extends BaseUnitTestCase
{
protected function setup(): void
{
$process = new Process(['cmd as array']);
if (\is_array($process->getCommandLine())) {
$this->markTestSkipped('CommandLine not parsed, we have symfony/process < 3.3');
}

parent::setUp();
}

public function testCreateProcess()
{
$phpUnitConfig = $this->prophesize(PHPUnitConfig::class);
Expand Down

0 comments on commit 11aa10a

Please sign in to comment.