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])); }
function testCanCreateMockOfStatic() { $mock = Phockito::mock_class(FooIsStatic::class); $this->assertNull($mock::Foo()); }