4require_once(
"libs/composer/vendor/autoload.php");
28 $this->assertInstanceOf(Data\Result::class,
$result);
29 $this->assertTrue(
$result->isOk());
30 $this->assertFalse(
$result->isError());
35 $result = $this->f->error(
"Something went wrong");
36 $this->assertInstanceOf(Data\Result::class,
$result);
37 $this->assertTrue(
$result->isError());
38 $this->assertFalse(
$result->isOk());
43 $pwd = $this->f->password(
"secret");
44 $this->assertInstanceOf(Data\Password::class, $pwd);
An exception for terminatinating execution or to throw for unit testing.
Testing the faytory of result objects.