UntestedTest.php #1

  • //
  • guest/
  • perforce_software/
  • chronicle/
  • main/
  • tests/
  • phpunit/
  • P4Cms/
  • UntestedTest.php
  • View
  • Commits
  • Open Download .zip Download (776 B)
<?php
/**
 * Attempt to require_once all files under P4CMS folder to verify they show in
 * code coverage reports.
 *
 * @copyright   2011 Perforce Software. All rights reserved.
 * @license     Please see LICENSE.txt in top-level folder of this distribution.
 * @version     <release>/<patch>
 */
class P4Cms_UntestedTest extends TestCase
{
    /**
     * Requires all files to ensure they show up in coverage
     */
    public function testRequireAllFiles()
    {
        $files = new RecursiveDirectoryIterator(LIBRARY_PATH . '/P4Cms');
        foreach ($files as $fileName => $file) {
            if (!$files->isFile() || pathinfo($fileName, PATHINFO_EXTENSION) !== 'php') {
                continue;
            }

            include_once($fileName);
        }
    }
}
# Change User Description Committed
#1 16170 perforce_software Move Chronicle files to follow new path scheme for branching.
//guest/perforce_software/chronicle/tests/phpunit/P4Cms/UntestedTest.php
#1 8972 Matt Attaway Initial add of the Chronicle source code