spiral / testing

Spiral Framework testing SDK
https://spiral.dev/docs/packages-testing
MIT License
8 stars 4 forks source link

Add assertConfigHasFragments #30

Closed meekstellar closed 1 year ago

meekstellar commented 1 year ago

Example:

config/http.php

return [
    'basePath'   => '/',
    'headers'    => [
        'Content-Type' => 'text/html; charset=UTF-8',
    ],
    'middleware' => [],
];
$this->assertConfigHasFragments('http', [
    'basePath' => '/'
]);

$this->assertConfigHasFragments('http', [
    'headers' => [
        'Content-Type' => 'text/html; charset=UTF-8',
    ],
]);