fenom/tests/autoload.php

24 lines
500 B
PHP
Raw Normal View History

2013-01-25 18:36:16 +04:00
<?php
require_once __DIR__."/../vendor/autoload.php";
2013-06-28 11:53:53 +04:00
define('FENOM_RESOURCES', __DIR__."/resources");
2013-01-25 18:36:16 +04:00
2013-06-28 11:53:53 +04:00
require_once FENOM_RESOURCES."/actions.php";
2013-02-15 01:49:26 +04:00
require_once __DIR__."/TestCase.php";
function drop() {
call_user_func_array("var_dump", func_get_args());
$e = new Exception();
echo "-------\nDump trace: \n".$e->getTraceAsString()."\n";
exit();
2013-06-08 00:08:00 +04:00
}
function dump() {
foreach(func_get_args() as $arg) {
fwrite(STDERR, "DUMP: ".call_user_func("print_r", $arg, true)."\n");
}
2013-02-15 01:49:26 +04:00
}