Assert::that($object)->isInstanceOf(Controller::class);
/** * @test */ public function shouldFlattenNullValue() { //given $optional = Optional::of(Optional::of(Optional::fromNullable(null))); //when $result = $optional->flatten()->orNull(); //then Assert::that($result)->isNull(); }