compile('internal_override_valid.php'); } public function testParameterCannotBeNarrowed(): void { $this->exec( 'Declaration of `C::offsetGet()` must be compatible with `ArrayObject::offsetGet()`', 'internal_override_param_narrowed.php', ); } public function testStaticnessMustMatch(): void { $this->exec( 'Declaration of `C::count()` must be compatible with `ArrayObject::count()`', 'internal_override_static_mismatch.php', ); } public function testVisibilityCannotBeNarrowed(): void { $this->exec( 'Declaration of `C::count()` must be compatible with `ArrayObject::count()`', 'internal_override_visibility_narrowed.php', ); } public function testRealReturnTypeMustBeCovariant(): void { $this->exec( 'Declaration of `C::getMicrosecond()` must be compatible with `DateTime::getMicrosecond()`', 'internal_override_real_return_mismatch.php', ); } }