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.
khosb/includes/kohana/modules/unittest/tests.php

21 lines
410 B
PHP
Raw Normal View History

2010-08-21 04:43:03 +00:00
<?php
2011-05-13 06:00:25 +00:00
if ( ! class_exists('Kohana'))
2010-08-21 04:43:03 +00:00
{
die('Please include the kohana bootstrap file (see README.markdown)');
}
2012-11-09 12:18:50 +00:00
if ($file = Kohana::find_file('classes', 'Unittest/Tests'))
2010-08-21 04:43:03 +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
2012-11-09 12:18:50 +00:00
class TestSuite extends Unittest_Tests
2010-08-21 04:43:03 +00:00
{}
}
else
{
die('Could not include the test suite');
2012-11-09 12:18:50 +00:00
}