diff --git a/Zend/tests/traits/bug75449.phpt b/Zend/tests/traits/bug75449.phpt new file mode 100644 index 0000000000..b6be938d62 --- /dev/null +++ b/Zend/tests/traits/bug75449.phpt @@ -0,0 +1,37 @@ +--TEST-- +Bug #75449 (Ignored return type for abstract methods, defined in traits) +--CREDIT-- +KCPHPUG TestFest 2017 - Eric Poe +--FILE-- + +--XFAIL-- +Bug 75449 - Currently classes that use an abstract function in a trait do not pay attention to return types (neither strict nor non-strict) +--EXPECTF-- +Fatal error: Declaration of A::values(): string must be compatible with T::values(): array in %s on line %d +Fatal error: Declaration of C::values(): string must be compatible with B::values(): array in %s on line %d