diff --git a/tests/phpunit/tests/dependencies/mediaelementjs.php b/tests/phpunit/tests/dependencies/mediaelementjs.php new file mode 100644 index 0000000000..36359710df --- /dev/null +++ b/tests/phpunit/tests/dependencies/mediaelementjs.php @@ -0,0 +1,36 @@ +assertGreaterThan( 0, count( $js_files ) ); + + $mejs_directory_iterator = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $mejs_folder ) ); + $mejs_swf_iterator = new RegexIterator( $mejs_directory_iterator, '/\.swf$/i', RecursiveRegexIterator::GET_MATCH ); + + // Make sure the Flash files haven't been re-added accidentally. + $this->assertCount( 0, iterator_to_array( $mejs_swf_iterator ) ); + } +}