for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Composer\Config\Tests\Integration\Tests\Config;
final class AlternativesTest extends ConfigTest
{
public function configProvider(): array
return [
[
'env_parameter',
fn(string $param) => $this->assertSame('yiiframework.com', $param),
'yiiframework.com/params'
],
'params',
fn(array $params) => $this->assertSame('yiiframework.com', $params['env_parameter']),
'yiiframework.com/web'
fn(array $params) => $this->assertSame('beta.yiiframework.ru', $params['env_parameter']),
'yiiframework.ru/web'
];
}
protected function getDefaultConfigName(): string
return 'web';