You are here

private static function CleanerTestFilesClearing::countFiles in Cleaner 7

Count CSS and JS files.

Return value

int Count value.

1 call to CleanerTestFilesClearing::countFiles()
CleanerTestFilesClearing::testFilesClearing in tests/cleaner_files.test
Test clearing CSS/JS files.

File

tests/cleaner_files.test, line 85
Test Clearing CSS/JS files.

Class

CleanerTestFilesClearing
Class CleanerTestFilesClearing.

Code

private static function countFiles() {
  $css = count(scandir(drupal_realpath('public://css')));
  $js = count(scandir(drupal_realpath('public://js')));
  return $css + $js;
}