Changeset 166

User picture

Author: Igor Moreno Santos

(2009/07/14 00:17) Over 2 years ago

Adjusting some includes

Affected files

Updated components/_start.php Download diff

165166
1
<?php
1
<?php
2
define( "COMPONENTS_PATH" , str_replace( "\\" , "/" , str_replace( basename( __FILE__ ) , "" , __FILE__ ) ) );
2
define( "COMPONENTS_PATH" , str_replace( "\\" , "/" , str_replace( basename( __FILE__ ) , "" , __FILE__ ) ) );
3
3
4
require_once( COMPONENTS_PATH . "library/_start.php" );
5
require_once( COMPONENTS_PATH . "loader/_start.php" );
4
Loader::requireOnce( COMPONENTS_PATH . "_start.php" );
6
Loader::requireOnce( COMPONENTS_PATH . "_start.php" );
5
Loader::requireOnce( COMPONENTS_PATH . "library/_start.php" );
6
Loader::requireOnce( COMPONENTS_PATH . "match/_start.php" );
7
Loader::requireOnce( COMPONENTS_PATH . "match/_start.php" );
7
Loader::requireOnce( COMPONENTS_PATH . "umlSequenceDiagram/_start.php" );
8
Loader::requireOnce( COMPONENTS_PATH . "umlSequenceDiagram/_start.php" );
8
//Loader::requireOnce( COMPONENTS_PATH . "backtrace/_start.php" );
9
//Loader::requireOnce( COMPONENTS_PATH . "backtrace/_start.php" );
...
...
11
Loader::requireOnce( COMPONENTS_PATH . "codeInstrumentation/_start.php" );
12
Loader::requireOnce( COMPONENTS_PATH . "codeInstrumentation/_start.php" );
12
Loader::requireOnce( COMPONENTS_PATH . "codeToDiagram/_start.php" );
13
Loader::requireOnce( COMPONENTS_PATH . "codeToDiagram/_start.php" );
13
Loader::requireOnce( COMPONENTS_PATH . "debug/_start.php" );
14
Loader::requireOnce( COMPONENTS_PATH . "debug/_start.php" );
14
?>
15
?>

Updated components/debug/CorujaDebug.class.php Download diff

165166
262
		if( $boolExit )
262
		if( $boolExit )
263
		{
263
		{
264
			print "<br /><font color=\"#700000\" size=\"4\"><b>D I E</b></font>";
264
			print "<br /><font color=\"#700000\" size=\"4\"><b>D I E</b></font>";
265
			throw new CorujaException( var_export( $mixExpression , 1 )  );
265
			//throw new CorujaException( var_export( $mixExpression , 1 )  );
266
		}
266
		}
267
	}
267
	}
268
268

Updated components/debug/test/CorujaDebugTest.php Download diff

165166
1
<?php
1
<?php
2
require_once 'PHPUnit/Framework.php';
2
require_once 'PHPUnit/Extensions/OutputTestCase.php';
3
3
4
require_once '../_start.php';
4
require_once dirname( __FILE__ ).'/../../../_start.php';
5
require_once '../../../../../_start.php';
6
5
7
/**
6
/**
8
 * Test class for CorujaDebug.
7
 * Test class for CorujaDebug.
9
 * Generated by PHPUnit on 2008-10-23 at 21:41:23.
8
 * Generated by PHPUnit on 2008-10-23 at 21:41:23.
10
 */
9
 */
11
class CorujaDebugTest extends PHPUnit_Framework_TestCase
10
class CorujaDebugTest extends PHPUnit_Extensions_OutputTestCase
12
{
11
{
13
12
14
    /**
13
    /**
...
...
50
49
51
        CorujaDebug::debug("test",true);
50
        CorujaDebug::debug("test",true);
52
51
53
        $this->expectOutputRegex(".*D I E.*");
52
        $this->expectOutputRegex("*D I E*");
54
        
53
        
55
    }
54
    }
56
}
55
}

Updated components/library/test/CorujaArrayManipulationTest.php Download diff

165166
1
<?php
1
<?php
2
require_once 'PHPUnit/Framework.php';
2
require_once 'PHPUnit/Framework.php';
3
3
4
require_once '../CorujaArrayManipulation.class.php';
4
require_once dirname( __FILE__ ).'/../../../_start.php';
5
5
6
/**
6
/**
7
 * Test class for CorujaArrayManipulation.
7
 * Test class for CorujaArrayManipulation.

Updated components/library/test/CorujaClassManipulationTest.php Download diff

165166
1
<?php
1
<?php
2
require_once 'PHPUnit/Framework.php';
2
require_once 'PHPUnit/Framework.php';
3
3
4
require_once '../_start.php';
4
require_once dirname( __FILE__ ).'/../../../_start.php';
5
5
6
/**
6
/**
7
 * Test class for CorujaClassManipulation.
7
 * Test class for CorujaClassManipulation.

Updated components/library/test/CorujaStringManipulationTest.php Download diff

165166
1
<?php
1
<?php
2
require_once 'PHPUnit/Framework.php';
2
require_once 'PHPUnit/Framework.php';
3
3
4
require_once '../CorujaStringManipulation.class.php';
4
require_once dirname( __FILE__ ).'/../../../_start.php';
5
5
6
/**
6
/**
7
 * Test class for CorujaStringManipulation.
7
 * Test class for CorujaStringManipulation.