Author: Igor Moreno Santos
(2009/07/14 00:17) Over 2 years ago
Adjusting some includes
1
<?php
2
define( "COMPONENTS_PATH" , str_replace( "\\" , "/" , str_replace( basename( __FILE__ ) , "" , __FILE__ ) ) );
3
4
require_once( COMPONENTS_PATH . "library/_start.php" );
5
require_once( COMPONENTS_PATH . "loader/_start.php" );
Loader::requireOnce( COMPONENTS_PATH . "_start.php" );
6
Loader::requireOnce( COMPONENTS_PATH . "library/_start.php" );
Loader::requireOnce( COMPONENTS_PATH . "match/_start.php" );
7
Loader::requireOnce( COMPONENTS_PATH . "umlSequenceDiagram/_start.php" );
8
//Loader::requireOnce( COMPONENTS_PATH . "backtrace/_start.php" );
9
...
11
Loader::requireOnce( COMPONENTS_PATH . "codeInstrumentation/_start.php" );
12
Loader::requireOnce( COMPONENTS_PATH . "codeToDiagram/_start.php" );
13
Loader::requireOnce( COMPONENTS_PATH . "debug/_start.php" );
14
?>
15
262
if( $boolExit )
263
{
264
print "<br /><font color=\"#700000\" size=\"4\"><b>D I E</b></font>";
265
throw new CorujaException( var_export( $mixExpression , 1 ) );
//throw new CorujaException( var_export( $mixExpression , 1 ) );
266
}
267
268
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/Extensions/OutputTestCase.php';
require_once '../_start.php';
require_once dirname( __FILE__ ).'/../../../_start.php';
require_once '../../../../../_start.php';
/**
* Test class for CorujaDebug.
* Generated by PHPUnit on 2008-10-23 at 21:41:23.
10
*/
class CorujaDebugTest extends PHPUnit_Framework_TestCase
class CorujaDebugTest extends PHPUnit_Extensions_OutputTestCase
50
49
51
CorujaDebug::debug("test",true);
52
53
$this->expectOutputRegex(".*D I E.*");
$this->expectOutputRegex("*D I E*");
54
55
56
require_once '../CorujaArrayManipulation.class.php';
* Test class for CorujaArrayManipulation.
* Test class for CorujaClassManipulation.
require_once '../CorujaStringManipulation.class.php';
* Test class for CorujaStringManipulation.
Loader::requireOnce( COMPONENTS_PATH . "library/_start.php" );{{//throw new CorujaException( var_export( $mixExpression , 1 ) );require_once 'PHPUnit/Framework.php';require_once 'PHPUnit/Extensions/OutputTestCase.php';require_once '../_start.php';require_once dirname( __FILE__ ).'/../../../_start.php';require_once '../../../../../_start.php';class CorujaDebugTest extends PHPUnit_Framework_TestCaseclass CorujaDebugTest extends PHPUnit_Extensions_OutputTestCase{{CorujaDebug::debug("test",true);CorujaDebug::debug("test",true);$this->expectOutputRegex(".*D I E.*");$this->expectOutputRegex("*D I E*");require_once '../CorujaArrayManipulation.class.php';require_once dirname( __FILE__ ).'/../../../_start.php';require_once '../_start.php';require_once dirname( __FILE__ ).'/../../../_start.php';require_once '../CorujaStringManipulation.class.php';require_once dirname( __FILE__ ).'/../../../_start.php';