3declare(strict_types=1);
 
   28use PHPUnit\Framework\TestCase;
 
   36        $value = [
'Donec', 
'at', 
'pede', 
'Phasellus', 
'purus', 
'Nulla', 
'facilisis', 
'risus', 
'a', 
'rhoncus', 
'fermentum', 
'tellus', 
'tellus', 
'lacinia', 
'purus', 
'et', 
'dictum', 
'nunc', 
'justo', 
'sit', 
'amet', 
'elit'];
 
   38        $seedMock = $this->getMockBuilder(Seed::class)->getMock();
 
   39        $seedMock->expects(self::once())->method(
'seedRandomGenerator')->willReturnCallback(
static function () use ($seed): 
void {
 
   44        $this->assertEquals($expected, $result);
 
   49        $this->expectException(ConstraintViolationException::class);
 
   50        $seedMock = $this->getMockBuilder(Seed::class)->getMock();
 
   51        $seedMock->expects(self::never())->method(
'seedRandomGenerator');
 
Signals that a result contains no value.
 
A result encapsulates a value or an error and simplifies the handling of those.
 
A result encapsulates a value or an error and simplifies the handling of those.