mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
CS fixes
This commit is contained in:
parent
6f6228fb1d
commit
8d0b7f278e
53 changed files with 122 additions and 124 deletions
|
@ -17,7 +17,7 @@ use Composer\Test\TestCase;
|
|||
|
||||
class InitCommandTest extends TestCase
|
||||
{
|
||||
function testParseValidAuthorString()
|
||||
public function testParseValidAuthorString()
|
||||
{
|
||||
$command = new InitCommand;
|
||||
$author = $command->parseAuthorString('John Smith <john@example.com>');
|
||||
|
@ -25,14 +25,14 @@ class InitCommandTest extends TestCase
|
|||
$this->assertEquals('john@example.com', $author['email']);
|
||||
}
|
||||
|
||||
function testParseEmptyAuthorString()
|
||||
public function testParseEmptyAuthorString()
|
||||
{
|
||||
$command = new InitCommand;
|
||||
$this->setExpectedException('InvalidArgumentException');
|
||||
$command->parseAuthorString('');
|
||||
}
|
||||
|
||||
function testParseAuthorStringWithInvalidEmail()
|
||||
public function testParseAuthorStringWithInvalidEmail()
|
||||
{
|
||||
$command = new InitCommand;
|
||||
$this->setExpectedException('InvalidArgumentException');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue