<?php

namespace Anax\DI;

use \PHPUnit_Framework_TestCase;

/**
 * Testcases.
 */
class DocumentationReadmeTest extends PHPUnit_Framework_TestCase
{
    /**
     * Test Add some routes with handlers
     */
    public function testAddSomeRoutesWIthHandles()
    {
        // $router = new RouterInjectable();
        // 
        // $router->add("", function () {
        //     echo "home ";
        // });
        // 
        // $router->add("about", function () {
        //     echo "about ";
        // });
        // 
        // $router->add("about/me", function () {
        //     echo "about/me ";
        // });
        // 
        // ob_start();
        // // try it out
        // $router->handle("");
        // $router->handle("about");
        // $router->handle("about/me");
        // // home about about/me
        // $res = ob_get_contents();
        // ob_end_clean();
        // $this->assertEquals($res, "home about about/me ");
    }
}
