mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-22 23:23:42 -06:00
30 lines
743 B
PHP
30 lines
743 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace ShlinkioTest\Shlink\CLI\Factory;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Shlinkio\Shlink\Installer\Factory\ProcessHelperFactory;
|
|
|
|
class ProcessHelperFactoryTest extends TestCase
|
|
{
|
|
/** @var ProcessHelperFactory */
|
|
private $factory;
|
|
|
|
public function setUp(): void
|
|
{
|
|
$this->factory = new ProcessHelperFactory();
|
|
}
|
|
|
|
/** @test */
|
|
public function createsTheServiceWithTheProperSetOfHelpers(): void
|
|
{
|
|
$processHelper = ($this->factory)();
|
|
$helperSet = $processHelper->getHelperSet();
|
|
|
|
$this->assertCount(2, $helperSet);
|
|
$this->assertTrue($helperSet->has('formatter'));
|
|
$this->assertTrue($helperSet->has('debug_formatter'));
|
|
}
|
|
}
|