*/
public final function getField ($fieldName) {
// The super interface "FrameworkInterface" requires this
- throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+ throw new UnsupportedOperationException(array($this, __FUNCTION__), BaseFrameworkSystem::EXCEPTION_UNSPPORTED_OPERATION);
}
/**
*/
public function isFieldSet ($fieldName) {
// The super interface "FrameworkInterface" requires this
- throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+ throw new UnsupportedOperationException(array($this, __FUNCTION__), BaseFrameworkSystem::EXCEPTION_UNSPPORTED_OPERATION);
}
/**
use CoreFramework\Console\Tools\ConsoleTools;
use CoreFramework\Loader\ClassLoader;
use CoreFramework\Generic\NullPointerException;
+use CoreFramework\Generic\UnsupportedOperationException;
// Import PHPUnit stuff
use PHPUnit\Framework\Error\Notice;
self::$configInstance->setServerAddress(self::$ipAddress);
}
+ /**
+ * Tests if the method getField() is still unsupported in this class. Please
+ * note, that this and isFieldSet() may get removed in the future. So also
+ * these test methods will be gone.
+ */
+ public function testConfigGetFieldUnsupported () {
+ // Expect this exception
+ $this->expectException(UnsupportedOperationException::class);
+
+ // Test it
+ $dummy = self::$configInstance->getField('foo');
+ }
+
+ /**
+ * Tests if the method isFieldSet() is still unsupported in this class. Please
+ * note, that this and getField() may get removed in the future. So also
+ * these test methods will be gone.
+ */
+ public function testConfigIsFieldSetUnsupported () {
+ // Expect this exception
+ $this->expectException(UnsupportedOperationException::class);
+
+ // Test it
+ $dummy = self::$configInstance->isFieldSet('foo');
+ }
+
}