EnsureTest::testClosureReturnedFromClosure()
Source
File: vendor/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php
public function testClosureReturnedFromClosure()
{
$option = $this->ensure(function() { return function() {}; });
$this->assertTrue($option->isDefined());
$this->assertInstanceOf('Closure', $option->get());
}