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