lithium\tests\cases\console\command\CreateTest::testNamespace PHP Method

testNamespace() public method

public testNamespace ( )
    public function testNamespace()
    {
        $create = new MockCreate(array('request' => $this->request));
        $this->request->params['command'] = 'one';
        $expected = 'create_test\\two';
        $result = $create->invokeMethod('_namespace', array($this->request, array('spaces' => array('one' => 'two'))));
        $this->assertEqual($expected, $result);
    }