class IniConfigReaderTest extends TestCase
{ /**
* @dataProvider configProvider
*/
public function testGet(string
$key, string|false
$configValue, string
$expectedValue): void
{ \
ini_set($key,
(string) $configValue);
$reader =
new IniConfigReader();
static::
assertSame($expectedValue,
$reader->
get($key));
\
ini_restore($key);
} public static function configProvider(): \Generator
{ yield 'max_execution_time' =>
[ 'max_execution_time',
'30',
'30',
];