markTestSkipped( $msg ); } ); if ( is_string( $expected ) ) { $this->expectException( AbstractSchemaValidationError::class ); $this->expectExceptionMessage( $expected ); } $dir = __DIR__ . '/../../../data/db/'; $this->assertSame( $expected, $validator->validate( $dir . $file ) ); } public static function provideValidate(): array { return [ [ 'tables.json', true ], [ 'patch-drop-ct_tag.json', true ], [ 'notschema.txt', 'notschema.txt is not valid JSON' ] ]; } }