Hi, I tried to upgrade to 1.0.2beta and found some errors.
The following testcase fails:
<?php
set_include_path(
dirname(__FILE__).'/..'.
PATH_SEPARATOR.
get_include_path());
require_once 'simpletest/unit_tester.php';
require_once 'simpletest/reporter.php';
require_once 'simpletest/mock_objects.php';
require_once 'PHPTAL.php';
class TestCase extends UnitTestCase {
function setUp() {
}
function test_mock_phptal() {
Mock::Generate('PHPTAL', 'MockView');
}
}
$test = new TestSuite();
$test->add(new TestCase());
$reporter = new TextReporter();
$test->run($reporter);
?>
With this output:
TestCase
Exception 1!
Unexpected exception of type [ReflectionException] with message [Class PHPTAL_TranslationService does not exist] in [/home/tarjei/Viddi/Viddi/php5/vendor/simpletest/reflection_php5.php line 342]
in test_mock_phptal
in TestCase
FAILURES!!!
Test cases run: 1/1, Passes: 0, Failures: 0, Exceptions: 1
You can fetch PHPTAL from here: http://phptal.motion-twin.com/
What is wrong here?