public function testInstanceFalse() { $result = MockStaticInstantiator::instance(false); $this->assertFalse($result); }
public function testInstanceFalse() { $this->expectException('/^Invalid class lookup/'); MockStaticInstantiator::instance(false); }
public function testInstanceFalse() { $this->assertException('/^Invalid class lookup/', function () { MockStaticInstantiator::instance(false); }); }