11<?php
22
3- /*
4- * The MIT License
5- *
6- * Copyright 2018 Ibrahim.
7- *
8- * Permission is hereby granted, free of charge, to any person obtaining a copy
9- * of this software and associated documentation files (the "Software"), to deal
10- * in the Software without restriction, including without limitation the rights
11- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12- * copies of the Software, and to permit persons to whom the Software is
13- * furnished to do so, subject to the following conditions:
14- *
15- * The above copyright notice and this permission notice shall be included in
16- * all copies or substantial portions of the Software.
17- *
18- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24- * THE SOFTWARE.
25- */
263ini_set ('display_startup_errors ' , 1 );
27- ini_set ('display_errors ' , 1 );
28- error_reporting (-1 );
4+ ini_set ('display_errors ' , 1 );
5+ error_reporting (-1 );
6+ $ DS = DIRECTORY_SEPARATOR ;
297$ testsDirName = 'tests ' ;
308$ rootDir = substr (__DIR__ , 0 , strlen (__DIR__ ) - strlen ($ testsDirName ));
31- $ DS = DIRECTORY_SEPARATOR ;
9+ ini_set ('display_errors ' , 1 );
10+ error_reporting (-1 );
3211$ rootDirTrimmed = trim ($ rootDir ,'/ \\' );
3312//echo 'Include Path: \''. get_include_path().'\''."\n";
3413if (explode ($ DS , $ rootDirTrimmed )[0 ] == 'home ' ) {
3817 $ rootDir = $ rootDirTrimmed .$ DS ;
3918}
4019define ('ROOT ' , $ rootDir );
41- //echo 'Root Directory: \''.$rootDir.'\'.'."\n";
42- $ collLibPath = $ rootDir .'vendor ' .$ DS .'webfiori ' .$ DS .'collections ' .$ DS .'webfiori ' .$ DS .'collections ' .$ DS ;
43-
44- require_once $ collLibPath .'Node.php ' ;
45- require_once $ collLibPath .'AbstractCollection.php ' ;
46- require_once $ collLibPath .'LinkedList.php ' ;
47- require_once $ collLibPath .'Stack.php ' ;
48- require_once $ collLibPath .'Queue.php ' ;
49- require_once $ collLibPath .'Comparable.php ' ;
50- //HTML classes
51- $ libPath = $ rootDir .'webfiori ' .$ DS .'ui ' .$ DS ;
52-
53- require_once $ libPath .'exceptions ' .$ DS .'InvalidNodeNameException.php ' ;
54- require_once $ libPath .'exceptions ' .$ DS .'TemplateNotFoundException.php ' ;
55- require_once $ libPath .'HTMLNode.php ' ;
56- require_once $ libPath .'Br.php ' ;
57- require_once $ libPath .'HeadNode.php ' ;
58- require_once $ libPath .'Paragraph.php ' ;
59- require_once $ libPath .'HTMLDoc.php ' ;
60- require_once $ libPath .'CodeSnippet.php ' ;
61- require_once $ libPath .'Input.php ' ;
62- require_once $ libPath .'JsCode.php ' ;
63- require_once $ libPath .'Label.php ' ;
64- require_once $ libPath .'Anchor.php ' ;
65- require_once $ libPath .'HTMLList.php ' ;
66- require_once $ libPath .'UnorderedList.php ' ;
67- require_once $ libPath .'OrderedList.php ' ;
68- require_once $ libPath .'ListItem.php ' ;
69- require_once $ libPath .'TableCell.php ' ;
70- require_once $ libPath .'TableRow.php ' ;
71- require_once $ libPath .'HTMLTable.php ' ;
72- require_once $ libPath .'RadioGroup.php ' ;
73- require_once $ libPath .'TemplateCompiler.php ' ;
7420
21+ require_once __DIR__ .$ DS .'.. ' .$ DS .'vendor ' .$ DS .'autoload.php ' ;
0 commit comments