This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
phptsmadmin/includes/kohana/modules/unittest/tests.php

20 lines
409 B
PHP
Raw Normal View History

2011-01-13 14:49:56 +00:00
<?php
if ( ! class_exists('Kohana'))
{
die('Please include the kohana bootstrap file (see README.markdown)');
}
2011-05-16 12:47:16 +00:00
if ($file = Kohana::find_file('classes', 'unittest/tests'))
2011-01-13 14:49:56 +00:00
{
require_once $file;
// PHPUnit requires a test suite class to be in this file,
// so we create a faux one that uses the kohana base
2011-05-16 12:47:16 +00:00
Class TestSuite extends Unittest_Tests
2011-01-13 14:49:56 +00:00
{}
}
else
{
die('Could not include the test suite');
}