Skip to content

Commit

Permalink
MacroTest: Fix outdated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Meyer committed Oct 1, 2015
1 parent 85e7e79 commit 92b0bfa
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ public function testCustomvars()
{
$objectMock = Mockery::mock('object');
$objectMock->customvars = array(
'CUSTOMVAR' => 'test'
'customvar' => 'test'
);

$this->assertEquals(Macro::resolveMacros('$CUSTOMVAR$', $objectMock), $objectMock->customvars['CUSTOMVAR']);
$this->assertEquals(Macro::resolveMacros('$CUSTOMVAR$', $objectMock), $objectMock->customvars['customvar']);
}

public function testFaultyMacros()
{
$hostMock = Mockery::mock('host');
$hostMock->host_name = 'test';
$hostMock->customvars = array(
'HOST' => 'te',
'NAME' => 'st'
'host' => 'te',
'name' => 'st'
);

$this->assertEquals(
Expand All @@ -73,12 +73,12 @@ public function testMacrosWithSpecialCharacters()
{
$objectMock = Mockery::mock('object');
$objectMock->customvars = array(
'V€RY_SP3C|@L' => 'not too special!'
'v€ry_sp3c|@l' => 'not too special!'
);

$this->assertEquals(
Macro::resolveMacros('$V€RY_SP3C|@L$', $objectMock),
$objectMock->customvars['V€RY_SP3C|@L']
$objectMock->customvars['v€ry_sp3c|@l']
);
}
}

0 comments on commit 92b0bfa

Please sign in to comment.