+ /**
+ * Tests setting a boolean default timezone
+ */
+ public function testSettingBooleanDefaultTimezone () {
+ // Will throw this exception
+ $this->expectException(InvalidArgumentException::class);
+
+ // Test it
+ self::$configInstance->setDefaultTimezone(FALSE);
+ }
+
+ /**
+ * Tests setting a decimal default timezone
+ */
+ public function testSettingDecimalDefaultTimezone () {
+ // Will throw this exception
+ $this->expectException(InvalidArgumentException::class);
+
+ // Test it
+ self::$configInstance->setDefaultTimezone(12345);
+ }
+
+ /**
+ * Tests setting a float default timezone
+ */
+ public function testSettingFloatDefaultTimezone () {
+ // Will throw this exception
+ $this->expectException(InvalidArgumentException::class);
+
+ // Test it
+ self::$configInstance->setDefaultTimezone(123.45);
+ }
+
+ /**
+ * Tests setting an array default timezone
+ */
+ public function testSettingArrayDefaultTimezone () {
+ // Will throw this exception
+ $this->expectException(InvalidArgumentException::class);
+
+ // Test it
+ self::$configInstance->setDefaultTimezone(array());
+ }
+
+ /**
+ * Tests setting an object default timezone
+ */
+ public function testSettingObjectDefaultTimezone () {
+ // Will throw this exception
+ $this->expectException(InvalidArgumentException::class);
+
+ // Test it
+ self::$configInstance->setDefaultTimezone($this);
+ }
+
+ /**
+ * Tests setting a resource default timezone
+ */
+ public function testSettingResourceDefaultTimezone () {
+ // Will throw this exception
+ $this->expectException(InvalidArgumentException::class);
+
+ // Init some resource
+ $resource = fopen(__FILE__, 'r');
+
+ // Test it
+ self::$configInstance->setDefaultTimezone($resource);
+ }
+