GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 20c872...c00bcd )
by Lukáš
01:48
created

GenerateProxiesCommandTest::testCommand()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 25
Code Lines 18

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 25
rs 8.8571
cc 1
eloc 18
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Lookyman\Nette\Proxy\Tests\Console;
5
6
use Kdyby\Console\Application;
7
use Lookyman\Nette\Proxy\Tests\Helpers;
8
use Nette\Configurator;
9
use Symfony\Component\Console\Tester\CommandTester;
10
11
class GenerateProxiesCommandTest extends \PHPUnit_Framework_TestCase
12
{
13
	public function testCommand()
14
	{
15
		$tempDir = __DIR__ . '/../temp/Console';
16
		Helpers::initTempDir($tempDir);
17
		Helpers::initTempDir($tempDir . '/../proxies');
18
19
		$container = (new Configurator())
20
			->setTempDirectory($tempDir)
21
			->setDebugMode(true)
22
			->addConfig(__DIR__ . '/../config/config.neon')
23
			->createContainer();
24
		$container->initialize();
25
26
		/** @var Application $application */
27
		$application = $container->getByType(Application::class);
28
		$command = $application->find('lookyman:nette-proxy:generate');
29
		$tester = new CommandTester($command);
30
		$tester->execute([
31
			'command' => $command->getName(),
32
			'--debug' => null,
33
		]);
34
35
		self::assertNotEquals('', $tester->getDisplay());
36
		self::assertCount(2, new \FilesystemIterator($tempDir . '/../proxies', \FilesystemIterator::SKIP_DOTS));
37
	}
38
}
39