Redaxscript\Tests\Detector\DetectorTest::testTemplate PHP Method

testTemplate() public method

testTemplate
Since: 2.1.0
public testTemplate ( array $registryArray = [], string $expect = null )
$registryArray array
$expect string
    public function testTemplate($registryArray = [], $expect = null)
    {
        /* setup */
        $this->_registry->init($registryArray);
        $detector = new Detector\Template($this->_registry, $this->_request);
        /* actual */
        $actual = $detector->getOutput();
        /* compare */
        $this->assertEquals($expect, $actual);
    }