CodeView

PHPUnit test harness for Komodo

ko_create_reference_files.php

<?php
 
    /**
     * @author  Michael Heim
     * @link    http://www.zeilenwechsel.de/
     * @version 1.2.0
     * @license http://www.zeilenwechsel.de/it/code/browse/komodo-phpunit-harness/prod/license.txt
     */
 
    /**
     * Generates reference output for the Komodo test harness, covering all combinations of harness switches.
     */
 
    chdir( dirname( __file__ ) );
 
    require_once( '../../bootstrap.php' );
 
    $factory = DebugFactory::init( 'Ko' );
 
    $factory
        ->create_bulk_output_generator_for_printer_options()
        ->set_output_dir( KO_REFERENCE_OUTPUT_DIR )
        ->normalize_output()
        ->create_output();
 
    foreach( BulkOutputGenerator::get_xml_config_dirs() as $integration_test_xml_config_dir ) {
 
        $factory
            ->create_bulk_output_generator_for_xml_config( $integration_test_xml_config_dir )
            ->set_output_dir( KO_REFERENCE_OUTPUT_DIR )
            ->normalize_output()
            ->create_output();
 
    }
 
?>