lithium\tests\cases\console\command\LibraryTest::testFormulate PHP Method

testFormulate() public method

public testFormulate ( )
    public function testFormulate()
    {
        $this->library->formulate();
        $expected = '/please supply a name/';
        $result = $this->library->response->output;
        $this->assertPattern($expected, $result);
        $path = $this->_testPath . '/library_test_plugin';
        mkdir($path);
        $result = $this->library->formulate($path);
        $this->assertTrue($result);
        $result = file_exists($path . '/config/library_test_plugin.json');
        $this->assertTrue($result);
        $this->_cleanUp();
    }