private $object_reflector = NULL;
/*! @var bool Whether or not a NULL object will throw when called. */
- private $null_allowed = FALSE;
+ private $null_allowed = TRUE;
/*! Creates a weak interface with the name of an actual interface. */
public function __construct($interface)
public function testNull()
{
- $this->setExpectedException('hoplite\base\WeakInterfaceException');
$delegate = new base\WeakInterface('hoplite\test\AllOptional');
$delegate->DoSomething();
}
public function testNullAllowed()
{
+ $this->setExpectedException('hoplite\base\WeakInterfaceException');
$delegate = new base\WeakInterface('hoplite\test\AllOptional');
- $delegate->set_null_allowed(TRUE);
+ $delegate->set_null_allowed(FALSE);
$delegate->DoSomething();
}
$imp->DoSomething();
$mt_e = microtime(TRUE);
print 'Straight Call: ' . ($mt_e - $mt_s) . 'µs' . "\n";
-
}
}