Redaxscript\Tests\Router\ParameterTest::testGetFirst PHP Метод

testGetFirst() публичный Метод

testGetFirst
С версии: 2.4.0
public testGetFirst ( string $route = null, array $expectArray = [] )
$route string
$expectArray array
    public function testGetFirst($route = null, $expectArray = [])
    {
        /* setup */
        $this->_request->setQuery('p', $route);
        $parameter = new Router\Parameter($this->_request);
        $parameter->init();
        /* actual */
        $actual = $parameter->getFirst();
        /* compare */
        $this->assertEquals($expectArray['first'], $actual);
    }