<?php
namespace WikiLingo\Test\Expression;

use WikiLingo\Test\Base;

class NumberedList2 extends Base
{
    public function __construct(&$parser)
    {
        $this->source =
            "# foo1\n" .
            "## foo11\n" .
            "##foo12\n" .
            "# bar1";

        $this->expected =
            '<ol>' .
                "<li><span class='whitespace'> </span>foo1" .
                    '<ol>' .
                        "<li><span class='whitespace'> </span>foo11</li>" .
                        '<li>foo12</li>' .
                    '</ol>' .
                '</li>' .
                "<li><span class='whitespace'> </span>bar1</li>" .
            '</ol>';
    }
}