/**
  * @covers Veles\View\Adapters\NativeAdapter::get
  */
 public function testGet()
 {
     $this->object->setTemplateDir($this->dir);
     $this->object->set(['a' => 'la', 'b' => 'lala', 'c' => 'Hello']);
     $result = $this->object->get('Frontend/index.phtml');
     $msg = 'Wrong NativeAdapter::get() result!';
     $this->assertSame($this->html, $result, $msg);
 }
<?php

/**
 * Environment initialisation for unit-tests
 *
 * @file      travisci-nightly-bootstrap.php
 *
 * PHP version 7.0+
 *
 * @author    Yancharuk Alexander <alex at itvault dot info>
 * @date      2015-07-29 21:59
 * @license   The BSD 3-Clause License
 *            <https://tldrlegal.com/license/bsd-3-clause-license-(revised)>
 */
namespace Veles\Tests;

use Veles\AutoLoader;
use Veles\View\Adapters\NativeAdapter;
use Veles\View\View;
define('LIB_DIR', realpath(__DIR__ . '/../..'));
define('TEST_DIR', realpath(LIB_DIR . '/Veles/Tests'));
date_default_timezone_set('Europe/Moscow');
require LIB_DIR . '/Veles/AutoLoader.php';
$includes = LIB_DIR . ':' . TEST_DIR . ':' . realpath(__DIR__ . '/Project');
set_include_path(implode(PATH_SEPARATOR, [$includes, get_include_path()]));
AutoLoader::init();
$view_adapter = new NativeAdapter();
$view_adapter->setTemplateDir(TEST_DIR . '/Project/View/');
View::setAdapter($view_adapter);