Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hglattergotz committed Nov 25, 2015
1 parent f12c6b3 commit a583ef8
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions tests/HGG/ParameterValidator/Test/InputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ public function testParamterAlreadyExists()

public function testParameterGetters()
{
$numberParameter = new NumberParameter(
'req-num',
Parameter::REQUIRED,
'This is a required numeric parameter',
'Some more details could go here',
'RandomValidatorClass'
);

$this->assertEquals('This is a required numeric parameter', $numberParameter->getSummary());
$this->assertEquals('Some more details could go here', $numberParameter->getDescription());
$this->assertEquals('RandomValidatorClass', $numberParameter->getValidator());
$numberParameter = new NumberParameter(
'req-num',
Parameter::REQUIRED,
'This is a required numeric parameter',
'Some more details could go here',
'RandomValidatorClass'
);

$this->assertEquals('This is a required numeric parameter', $numberParameter->getSummary());
$this->assertEquals('Some more details could go here', $numberParameter->getDescription());
$this->assertEquals('RandomValidatorClass', $numberParameter->getValidator());
}

public function testSunnyDay()
Expand Down Expand Up @@ -145,20 +145,20 @@ public function testOmitRequiredParameter()
*/
public function testOmitRequiredParameters()
{
$def = $this->def->addParameter(
new NumberParameter(
'req-num-2',
Parameter::REQUIRED,
'This is a required numeric parameter',
'Some more details could go here'
)
);

$parameters = array(
'opt-txt' => 'Some text value'
);

$input = new Input($parameters, $this->def);
$def = $this->def->addParameter(
new NumberParameter(
'req-num-2',
Parameter::REQUIRED,
'This is a required numeric parameter',
'Some more details could go here'
)
);

$parameters = array(
'opt-txt' => 'Some text value'
);

$input = new Input($parameters, $this->def);
}

/**
Expand Down

0 comments on commit a583ef8

Please sign in to comment.