diff --git a/tests/intl402/Locale/prototype/collations/name.php b/tests/intl402/Locale/prototype/collations/name.php new file mode 100644 index 0000000..4d6c940 --- /dev/null +++ b/tests/intl402/Locale/prototype/collations/name.php @@ -0,0 +1,15 @@ +expect($reflected->hasProperty('collations')) + ->toBeTrue(); + +it('has a method named "getCollations"') + ->expect($reflected->hasMethod('getCollations')) + ->toBeTrue(); diff --git a/tests/intl402/Locale/prototype/collations/prop-desc.php b/tests/intl402/Locale/prototype/collations/prop-desc.php new file mode 100644 index 0000000..579e1a1 --- /dev/null +++ b/tests/intl402/Locale/prototype/collations/prop-desc.php @@ -0,0 +1,56 @@ +getProperty('collations'); +$type = $property->getType(); + +test('its name is "collations"') + ->expect($property->getName()) + ->toBe('collations'); + +it('is a public property') + ->expect($property->isPublic()) + ->toBeTrue(); + +it('is not a static property') + ->expect($property->isStatic()) + ->toBeFalse(); + +it('is a readonly property') + ->expect($property->isReadOnly()) + ->toBeTrue(); + +it('is an array type and does not allow null values') + ->expect($type) + ->toBeInstanceOf(ReflectionType::class) + ->and($type->allowsNull()) + ->toBeFalse() + ->and($type->getName()) + ->toBe('array'); + +$method = $reflected->getMethod('getCollations'); +$returnType = $method->getReturnType(); + +test('its name is "getCollations"') + ->expect($method->getName()) + ->toBe('getCollations'); + +it('is a public method') + ->expect($method->isPublic()) + ->toBeTrue(); + +it('is not a static method') + ->expect($method->isStatic()) + ->toBeFalse(); + +it('returns an array type and does not return null') + ->expect($returnType) + ->toBeInstanceOf(ReflectionType::class) + ->and($returnType->allowsNull()) + ->toBeFalse() + ->and($returnType->getName()) + ->toBe('array'); diff --git a/tests/intl402/Locale/prototype/currencies/name.php b/tests/intl402/Locale/prototype/currencies/name.php new file mode 100644 index 0000000..4b78247 --- /dev/null +++ b/tests/intl402/Locale/prototype/currencies/name.php @@ -0,0 +1,15 @@ +expect($reflected->hasProperty('currencies')) + ->toBeTrue(); + +it('has a method named "getCurrencies"') + ->expect($reflected->hasMethod('getCurrencies')) + ->toBeTrue(); diff --git a/tests/intl402/Locale/prototype/currencies/prop-desc.php b/tests/intl402/Locale/prototype/currencies/prop-desc.php new file mode 100644 index 0000000..7c115ed --- /dev/null +++ b/tests/intl402/Locale/prototype/currencies/prop-desc.php @@ -0,0 +1,56 @@ +getProperty('currencies'); +$type = $property->getType(); + +test('its name is "currencies"') + ->expect($property->getName()) + ->toBe('currencies'); + +it('is a public property') + ->expect($property->isPublic()) + ->toBeTrue(); + +it('is not a static property') + ->expect($property->isStatic()) + ->toBeFalse(); + +it('is a readonly property') + ->expect($property->isReadOnly()) + ->toBeTrue(); + +it('is an array type and does not allow null values') + ->expect($type) + ->toBeInstanceOf(ReflectionType::class) + ->and($type->allowsNull()) + ->toBeFalse() + ->and($type->getName()) + ->toBe('array'); + +$method = $reflected->getMethod('getCurrencies'); +$returnType = $method->getReturnType(); + +test('its name is "getCurrencies"') + ->expect($method->getName()) + ->toBe('getCurrencies'); + +it('is a public method') + ->expect($method->isPublic()) + ->toBeTrue(); + +it('is not a static method') + ->expect($method->isStatic()) + ->toBeFalse(); + +it('returns an array type and does not return null') + ->expect($returnType) + ->toBeInstanceOf(ReflectionType::class) + ->and($returnType->allowsNull()) + ->toBeFalse() + ->and($returnType->getName()) + ->toBe('array'); diff --git a/tests/intl402/Locale/prototype/hourCycles/name.php b/tests/intl402/Locale/prototype/hourCycles/name.php new file mode 100644 index 0000000..c5fa917 --- /dev/null +++ b/tests/intl402/Locale/prototype/hourCycles/name.php @@ -0,0 +1,15 @@ +expect($reflected->hasProperty('hourCycles')) + ->toBeTrue(); + +it('has a method named "getHourCycles"') + ->expect($reflected->hasMethod('getHourCycles')) + ->toBeTrue(); diff --git a/tests/intl402/Locale/prototype/hourCycles/prop-desc.php b/tests/intl402/Locale/prototype/hourCycles/prop-desc.php new file mode 100644 index 0000000..2c6598d --- /dev/null +++ b/tests/intl402/Locale/prototype/hourCycles/prop-desc.php @@ -0,0 +1,56 @@ +getProperty('hourCycles'); +$type = $property->getType(); + +test('its name is "hourCycles"') + ->expect($property->getName()) + ->toBe('hourCycles'); + +it('is a public property') + ->expect($property->isPublic()) + ->toBeTrue(); + +it('is not a static property') + ->expect($property->isStatic()) + ->toBeFalse(); + +it('is a readonly property') + ->expect($property->isReadOnly()) + ->toBeTrue(); + +it('is an array type and does not allow null values') + ->expect($type) + ->toBeInstanceOf(ReflectionType::class) + ->and($type->allowsNull()) + ->toBeFalse() + ->and($type->getName()) + ->toBe('array'); + +$method = $reflected->getMethod('getHourCycles'); +$returnType = $method->getReturnType(); + +test('its name is "getHourCycles"') + ->expect($method->getName()) + ->toBe('getHourCycles'); + +it('is a public method') + ->expect($method->isPublic()) + ->toBeTrue(); + +it('is not a static method') + ->expect($method->isStatic()) + ->toBeFalse(); + +it('returns an array type and does not return null') + ->expect($returnType) + ->toBeInstanceOf(ReflectionType::class) + ->and($returnType->allowsNull()) + ->toBeFalse() + ->and($returnType->getName()) + ->toBe('array'); diff --git a/tests/intl402/Locale/prototype/numberingSystems/name.php b/tests/intl402/Locale/prototype/numberingSystems/name.php new file mode 100644 index 0000000..b820c21 --- /dev/null +++ b/tests/intl402/Locale/prototype/numberingSystems/name.php @@ -0,0 +1,15 @@ +expect($reflected->hasProperty('numberingSystems')) + ->toBeTrue(); + +it('has a method named "getNumberingSystems"') + ->expect($reflected->hasMethod('getNumberingSystems')) + ->toBeTrue(); diff --git a/tests/intl402/Locale/prototype/numberingSystems/prop-desc.php b/tests/intl402/Locale/prototype/numberingSystems/prop-desc.php new file mode 100644 index 0000000..6256c15 --- /dev/null +++ b/tests/intl402/Locale/prototype/numberingSystems/prop-desc.php @@ -0,0 +1,56 @@ +getProperty('numberingSystems'); +$type = $property->getType(); + +test('its name is "numberingSystems"') + ->expect($property->getName()) + ->toBe('numberingSystems'); + +it('is a public property') + ->expect($property->isPublic()) + ->toBeTrue(); + +it('is not a static property') + ->expect($property->isStatic()) + ->toBeFalse(); + +it('is a readonly property') + ->expect($property->isReadOnly()) + ->toBeTrue(); + +it('is an array type and does not allow null values') + ->expect($type) + ->toBeInstanceOf(ReflectionType::class) + ->and($type->allowsNull()) + ->toBeFalse() + ->and($type->getName()) + ->toBe('array'); + +$method = $reflected->getMethod('getNumberingSystems'); +$returnType = $method->getReturnType(); + +test('its name is "getNumberingSystems"') + ->expect($method->getName()) + ->toBe('getNumberingSystems'); + +it('is a public method') + ->expect($method->isPublic()) + ->toBeTrue(); + +it('is not a static method') + ->expect($method->isStatic()) + ->toBeFalse(); + +it('returns an array type and does not return null') + ->expect($returnType) + ->toBeInstanceOf(ReflectionType::class) + ->and($returnType->allowsNull()) + ->toBeFalse() + ->and($returnType->getName()) + ->toBe('array'); diff --git a/tests/intl402/Locale/prototype/timeZones/name.php b/tests/intl402/Locale/prototype/timeZones/name.php new file mode 100644 index 0000000..ed8b851 --- /dev/null +++ b/tests/intl402/Locale/prototype/timeZones/name.php @@ -0,0 +1,15 @@ +expect($reflected->hasProperty('timeZones')) + ->toBeTrue(); + +it('has a method named "getTimeZones"') + ->expect($reflected->hasMethod('getTimeZones')) + ->toBeTrue(); diff --git a/tests/intl402/Locale/prototype/timeZones/prop-desc.php b/tests/intl402/Locale/prototype/timeZones/prop-desc.php new file mode 100644 index 0000000..e72b340 --- /dev/null +++ b/tests/intl402/Locale/prototype/timeZones/prop-desc.php @@ -0,0 +1,56 @@ +getProperty('timeZones'); +$type = $property->getType(); + +test('its name is "timeZones"') + ->expect($property->getName()) + ->toBe('timeZones'); + +it('is a public property') + ->expect($property->isPublic()) + ->toBeTrue(); + +it('is not a static property') + ->expect($property->isStatic()) + ->toBeFalse(); + +it('is a readonly property') + ->expect($property->isReadOnly()) + ->toBeTrue(); + +it('is an array type and allows null values') + ->expect($type) + ->toBeInstanceOf(ReflectionType::class) + ->and($type->allowsNull()) + ->toBeTrue() + ->and($type->getName()) + ->toBe('array'); + +$method = $reflected->getMethod('getTimeZones'); +$returnType = $method->getReturnType(); + +test('its name is "getTimeZones"') + ->expect($method->getName()) + ->toBe('getTimeZones'); + +it('is a public method') + ->expect($method->isPublic()) + ->toBeTrue(); + +it('is not a static method') + ->expect($method->isStatic()) + ->toBeFalse(); + +it('returns an array type and can return null') + ->expect($returnType) + ->toBeInstanceOf(ReflectionType::class) + ->and($returnType->allowsNull()) + ->toBeTrue() + ->and($returnType->getName()) + ->toBe('array');