3declare(strict_types=1);
26use PHPUnit\Framework\TestCase;
36 $this->assertEquals($value, $actual);
41 $value = [
'im in an array'];
43 $this->assertInstanceOf(Ok::class, $result);
44 $this->assertEquals($value, $result->value());
51 $this->assertEquals(
$error, $result);
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.
applyTo(Result $result)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...