OptionTest::testOrElse()


Source

File: vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php

    public function testOrElse()
    {
        $a = new \PhpOption\Some('a');
        $b = new \PhpOption\Some('b');

        $this->assertEquals('a', $a->orElse($b)->get());
    }