BUG 0000 "First Commit for **PHPUnit** implementation for ProcessMaker"
This commit is contained in:
30
phpunit.xml
Normal file
30
phpunit.xml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<phpunit backupGlobals="false"
|
||||||
|
backupStaticAttributes="false"
|
||||||
|
colors="true"
|
||||||
|
convertErrorsToExceptions="true"
|
||||||
|
convertNoticesToExceptions="true"
|
||||||
|
convertWarningsToExceptions="true"
|
||||||
|
processIsolation="false"
|
||||||
|
stopOnFailure="false"
|
||||||
|
syntaxCheck="false"
|
||||||
|
bootstrap="tests/bootstrap.php"
|
||||||
|
>
|
||||||
|
<testsuites>
|
||||||
|
<testsuite name="ProcessMaker Components Test Suite">
|
||||||
|
<directory>./tests/</directory>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
<whitelist>
|
||||||
|
<directory>./</directory>
|
||||||
|
<exclude>
|
||||||
|
<directory>./gulliver</directory>
|
||||||
|
<directory>./workflow</directory>
|
||||||
|
<directory>./rbac</directory>
|
||||||
|
</exclude>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
|
</phpunit>
|
||||||
19
tests/bootstrap.php
Normal file
19
tests/bootstrap.php
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
// ProcessMaker Test Unit Bootstrap
|
||||||
|
|
||||||
|
// Defining the PATH_SEP constant, he we are defining if the the path separator symbol will be '\\' or '/'
|
||||||
|
define('PATH_SEP', '/');
|
||||||
|
|
||||||
|
// Defining the Home Directory
|
||||||
|
define('PATH_TRUNK', realpath(__DIR__ . '/../') . PATH_SEP);
|
||||||
|
define('PATH_HOME', PATH_TRUNK . 'workflow' . PATH_SEP);
|
||||||
|
|
||||||
|
require PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php';
|
||||||
|
|
||||||
|
set_include_path(
|
||||||
|
PATH_CORE . PATH_SEPARATOR .
|
||||||
|
PATH_THIRDPARTY . PATH_SEPARATOR .
|
||||||
|
PATH_THIRDPARTY . 'pear'. PATH_SEPARATOR .
|
||||||
|
PATH_RBAC_CORE . PATH_SEPARATOR .
|
||||||
|
get_include_path()
|
||||||
|
);
|
||||||
1636
tests/gulliver/system/GTest.php
Normal file
1636
tests/gulliver/system/GTest.php
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user