setConfig() final public static method

final public static setConfig ( FBMock_Config $config )
$config FBMock_Config
Exemplo n.º 1
0
 public function testMockGetInterfacesAndTraits()
 {
     FBMock_Config::setConfig(new MockUtilsTestCase_TestConfig());
     self::assertEquals(array(array('FBMock_Mock'), array('TestCustomTrait1', 'TestCustomTrait2')), FBMock_Utils::getInterfacesAndTraits());
     FBMock_Config::clearConfig();
 }
Exemplo n.º 2
0
 public static function setUpBeforeClass()
 {
     // In case these tests are being run somewhere a custom config is defined
     FBMock_Config::setConfig(new FBMock_Config());
 }