/**
  * @param string
  * @param bool
  */
 public function __construct($path, $filename_filters = array(), $classname_filters = array(), $recursive = true)
 {
     parent::__construct($path, $recursive);
     if ($filename_filters) {
         if (!is_array($filename_filters)) {
             throw new IllegalTypeException('$filename_filters must be an array, not ' . gettype($filename_filters));
         }
         $this->filename_filters = $filename_filters;
     }
     if ($classname_filters) {
         if (!is_array($classname_filters)) {
             throw new IllegalTypeException('$classname_filters must be an array, not ' . gettype($classname_filters));
         }
         $this->classname_filters = $classname_filters;
     }
 }
Beispiel #2
0
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
apd_set_pprof_trace();
require_once '../../lib/base/boot.php';
import('../../lib/unittest');
$libTest = new UnitLibraryTestCase('../../lib');
$libTest->test();
$cases = $libTest->getCompletedTestCases();
$favicon = $libTest->passed() ? 'success' : 'failed';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<title>Unit test</title>
		<link rel="icon" href="favicon_<?php 
echo $favicon;
?>
.ico" type="image/x-icon" />
		<link rel="shortcut icon" href="favicon_<?php 
echo $favicon;
?>