
| Current Path : /var/www/html/c12park/vendor/grasmash/yaml-cli/tests/src/Command/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/c12park/vendor/grasmash/yaml-cli/tests/src/Command/ApplicationTest.php |
<?php
namespace Grasmash\YamlCli\Tests\Command;
use Grasmash\YamlCli\Tests\TestBase;
class ApplicationTest extends TestBase
{
/**
* Tests that all expected commands are available in the application.
*
* @dataProvider getValueProvider
*/
public function testApplication($expected)
{
$bin = realpath(__DIR__ . '/../../../bin/yaml-cli');
$output = shell_exec("$bin list");
$this->assertStringContainsString($expected, $output);
}
/**
* Provides values to testApplication().
*
* @return array
* An array of values to test.
*/
public function getValueProvider(): array
{
return [
['get:value'],
['get:type'],
['lint'],
['unset:key'],
['update:key'],
['update:value'],
];
}
}