public function testRunGroupForTestAppModel()
{
$testApp = Libraries::get(true, 'resources') . '/tmp/tests/test_app';
mkdir($testApp);
Libraries::add('test_app', array('path' => $testApp));
mkdir($testApp . '/tests/cases/models', 0777, true);
file_put_contents($testApp . '/tests/cases/models/UserTest.php', "<?php namespace test_app\\tests\\cases\\models;\n\n\t\t\tclass UserTest extends \\lithium\\test\\Unit { public function testMe() {\n\t\t\t\t\$this->assertTrue(true);\n\t\t\t}}");
Libraries::cache(false);
$group = new Group(array('data' => array('test_app\\tests\\cases')));
$expected = array('test_app\\tests\\cases\\models\\UserTest');
$result = $group->to('array');
$this->assertEqual($expected, $result);
$expected = 'pass';
$result = $group->tests()->run();
$this->assertEqual($expected, $result[0][0]['result']);
Libraries::cache(false);
$this->_cleanUp();
}