<?php
namespace canisunit\phalcon\engine\controllers;

use canis\phalcon\engine\tests\TestRequest;
use canisunit\phalcon\engine\dummy;
use canisunit\phalcon\engine\TestCase;

class ControllerTest extends TestCase
{
    public function testControllerMap()
    {
        $container = [];
        $container['settings'] = ['displayErrorDetails' => true];
        $container['bootstrap'] = ['controllers'];
        $container['controllers'] = new dummy\ControllerMap;
        $request = new TestRequest($container);
        $response = $request->get('/alpha/do');
        $this->assertEquals((string)$response->getBody(), 'test');
    }
}
