EnsureTest::testMixedValue()
Source
File: vendor/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php
public function testMixedValue()
{
$option = $this->ensure(1);
$this->assertTrue($option->isDefined());
$this->assertSame(1, $option->get());
$this->assertFalse($this->ensure(null)->isDefined());
$this->assertFalse($this->ensure(1,1)->isDefined());
}