Add test cases. Requires installation of config.php and settings.txt
This commit is contained in:
16
test/autoloader.php
Normal file
16
test/autoloader.php
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
define('HBC_File', 'test');
|
||||||
|
|
||||||
|
require_once('test/config.php');
|
||||||
|
require_once('source/lib/SihnonFramework/Main.class.php');
|
||||||
|
|
||||||
|
SihnonFramework_Main::registerAutoloadClasses('SihnonFramework', SihnonFramework_Lib,
|
||||||
|
'RippingCluster', RippingCluster_Lib);
|
||||||
|
SihnonFramework_Main::registerAutoloadClasses('Net', RippingCluster_Lib);
|
||||||
|
|
||||||
|
assert(class_exists('RippingCluster_Cache', true));
|
||||||
|
assert(class_exists('Net_Gearman_Job_HandBrake', true));
|
||||||
|
assert(! class_exists('IDontExist', true));
|
||||||
|
|
||||||
|
?>
|
||||||
14
test/path-resolver.php
Normal file
14
test/path-resolver.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
define('HBC_File', 'test');
|
||||||
|
|
||||||
|
require_once('test/config.php');
|
||||||
|
require_once('source/lib/SihnonFramework/Main.class.php');
|
||||||
|
|
||||||
|
var_dump(
|
||||||
|
SihnonFramework_Main::makeAbsolutePath('source/lib/SihnonFramework/Main.class.php'),
|
||||||
|
SihnonFramework_Main::makeAbsolutePath('../sihnon-php-lib/source/lib/SihnonFramework/Main.class.php'),
|
||||||
|
SihnonFramework_Main::makeAbsolutePath('/home/ben/projects/sihnon-php-lib/source/lib/SihnonFramework/Main.class.php')
|
||||||
|
);
|
||||||
|
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user