Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit ad844eb

Browse files
committed
Add test
1 parent c85d780 commit ad844eb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/ZendDiagnosticsTest/RunnerTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,17 @@ public function testAfterRun()
230230
$this->runner->run();
231231
}
232232

233+
public function testAliasIsKeptAfterRun()
234+
{
235+
$checkAlias = 'foo';
236+
$check = new AlwaysSuccess();
237+
$this->runner->addCheck($check, $checkAlias);
238+
$mock = $this->getMock('ZendDiagnosticsTest\TestAsset\Reporter\AbstractReporter', array('onAfterRun'));
239+
$mock->expects($this->once())->method('onAfterRun')->with($this->identicalTo($check), $check->check(), $checkAlias);
240+
$this->runner->addReporter($mock);
241+
$this->runner->run($checkAlias);
242+
}
243+
233244
/**
234245
* @dataProvider checksAndResultsProvider
235246
*/

0 commit comments

Comments
 (0)