Ejemplo n.º 1
0
 function testImplementsInjectionOfAnInterfaceDouble()
 {
     global $_PSST_ALL_CLASSES;
     $class = Phockito::mock_class(PhockitoSilverStripeTest_Interface::class);
     $this->assertTrue(array_key_exists($class, $_PSST_ALL_CLASSES['implementors'][PhockitoSilverStripeTest_Interface::class]));
 }
Ejemplo n.º 2
0
 function testCanCreateMockOfStatic()
 {
     $mock = Phockito::mock_class(FooIsStatic::class);
     $this->assertNull($mock::Foo());
 }