Fix lock strategy tests
This commit is contained in:
parent
18510f8352
commit
afbb8bec18
@ -82,7 +82,7 @@ class ConsensusStrategyTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider provideIndeterminate
|
* @dataProvider provideIndeterminate
|
||||||
*/
|
*/
|
||||||
public function canBeMet($success, $failure, $total, $isMet)
|
public function testCanBeMet($success, $failure, $total, $isMet)
|
||||||
{
|
{
|
||||||
$this->assertSame($isMet, $this->strategy->canBeMet($failure, $total));
|
$this->assertSame($isMet, $this->strategy->canBeMet($failure, $total));
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ class UnanimousStrategyTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider provideIndeterminate
|
* @dataProvider provideIndeterminate
|
||||||
*/
|
*/
|
||||||
public function canBeMet($success, $failure, $total, $isMet)
|
public function testCanBeMet($success, $failure, $total, $isMet)
|
||||||
{
|
{
|
||||||
$this->assertSame($isMet, $this->strategy->canBeMet($failure, $total));
|
$this->assertSame($isMet, $this->strategy->canBeMet($failure, $total));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user