public static registerConfig ( $customConfig ) : |
||
$customConfig | ||
Résultat |
/** * @param $config * @return $this */ public function addConfig($config) { $this->configRepository = Config::registerConfig($config); return $this; }
/** * @test * @expectedException InvalidArgumentException * @expectedExceptionMessage Custom config method getConfig must be public */ public function shouldThrowExceptionWhenTryToAddCustomConfigWhenGetConfigMethodIsNotPublic() { //when Config::registerConfig(new PrivateGetConfigMethod()); }