Commit b2b9b4f3 by Qiang Xue

test wip

parent b71e8301
......@@ -10,9 +10,9 @@
namespace yii\test;
require_once('PHPUnit/Runner/Version.php');
spl_autoload_unregister(array('YiiBase','autoload'));
spl_autoload_unregister(array('Yii','autoload'));
require_once('PHPUnit/Autoload.php');
spl_autoload_register(array('YiiBase','autoload')); // put yii's autoloader at the end
spl_autoload_register(array('Yii','autoload')); // put yii's autoloader at the end
/**
* TestCase is the base class for all test case classes.
......
<?php
/**
* WebTestCase class.
*
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\test;
require_once('PHPUnit/Runner/Version.php');
spl_autoload_unregister(array('Yii','autoload'));
require_once('PHPUnit/Autoload.php');
spl_autoload_register(array('Yii','autoload')); // put yii's autoloader at the end
/**
* WebTestCase is the base class for all test case classes.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
abstract class WebTestCase extends \PHPUnit_Extensions_SeleniumTestCase
{
}
......@@ -63,7 +63,7 @@ class ActiveForm extends Widget
$models = array($models);
}
$showAll = isset($options['showAll']) && $options['showAll']);
$showAll = isset($options['showAll']) && $options['showAll'];
$lines = array();
/** @var $model Model */
foreach ($models as $model) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment