Composer\Test\Command\InitCommandTest::testParseValidAuthorString PHP Метод

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

    public function testParseValidAuthorString()
    {
        $command = new InitCommand();
        $author = $command->parseAuthorString('John Smith <[email protected]>');
        $this->assertEquals('John Smith', $author['name']);
        $this->assertEquals('[email protected]', $author['email']);
    }