We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class MySqlPropertiesTest extends TestCase { |
||
| 16 | private const RESOURCES = ROOT . "test/resources/mysql-config/validation"; |
||
| 17 | |||
| 18 | public function test_validate_config_happy_path() { |
||
| 19 | // Given required environment file is present |
||
| 20 | $config = Dotenv::createArrayBacked(self::RESOURCES, "good.env"); |
||
| 21 | $config->load(); |
||
| 22 | // When performing validation of the config |
||
| 23 | MySqlProperties::validateConfig($config); |
||
| 24 | // Then no errors are present. |
||
| 25 | $this->assertTrue(true); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function test_validate_config_missing_config_values_throws_exception() { |
||
| 38 | } |
||
| 39 | } |
||
| 41 |