*/ $_SERVER['SITE_HOME'] = __DIR__; require_once realpath(__DIR__.'/../../../configuration.inc'); use Blossom\Classes\View; class ViewTest extends PHPUnit_Framework_TestCase { public function testVars() { $view = new ViewStub(['test'=>'something']); $this->assertEquals('something', $view->test); $view->one = 'another test'; $this->assertEquals('another test', $view->one); } } class ViewStub extends View { public function __construct($vars=null) { parent::__construct($vars); } public function render() { return 'test content'; } }