Inheritance: extends lithium\core\StaticObject
Beispiel #1
0
 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));
 }