Example #1
0
 public function testGetRequiredSubValue()
 {
     $this->assertEquals(self::TEST_VALUE, \OLOG\ConfWrapper::getRequiredSubvalue(self::TEST_CONFIG_ARR, self::TEST_FIRST_LEVEL_ARR_KEY . '.' . self::TEST_SECOND_LEVEL_STRING_KEY));
     $this->expectException('Exception');
     $this->expectExceptionMessage('missing config key');
     \OLOG\ConfWrapper::getRequiredSubvalue(self::TEST_CONFIG_ARR, self::TEST_FIRST_LEVEL_ARR_KEY . '.' . self::TEST_NOT_EXISTING_KEY);
 }