Permalink
Browse files

[feature/phpunit] Add phpunit configuration and bootstrapping.

  • Loading branch information...
1 parent e484373 commit d7079754264a31acf6bce90a87ff4f0defa02098 @bantu bantu committed May 24, 2012
Showing with 31 additions and 0 deletions.
  1. +18 −0 phpunit.xml.dist
  2. +13 −0 tests/bootstrap.php
View
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit bootstrap="tests/bootstrap.php"
+ colors="true"
+>
+ <testsuites>
+ <testsuite name="phpseclib Test Suite">
+ <directory>./tests/</directory>
+ </testsuite>
+ </testsuites>
+
+ <!-- Code Coverage -->
+ <filter>
+ <whitelist>
+ <directory>./phpseclib/</directory>
+ </whitelist>
+ </filter>
+</phpunit>
View
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Bootstrapping File for phpseclib Test Suite
+ *
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ */
+
+// Set up include path accordingly. This is especially required because some
+// class files of phpseclib require() other dependencies.
+set_include_path(implode(PATH_SEPARATOR, array(
+ dirname(__FILE__) . '/../phpseclib/',
+ get_include_path(),
+)));

0 comments on commit d707975

Please sign in to comment.