with_config() public method

Set custom parameters to inject into the container.
public with_config ( phpbb\config_php_file $config_php_file )
$config_php_file phpbb\config_php_file
Beispiel #1
0
 public function setUp()
 {
     $this->phpbb_root_path = dirname(__FILE__) . '/';
     $this->config_php = new \phpbb\config_php_file($this->phpbb_root_path . 'fixtures/', 'php');
     $this->builder = new phpbb_mock_phpbb_di_container_builder($this->phpbb_root_path . 'fixtures/', 'php');
     $this->builder->with_config($this->config_php);
     $this->filename = $this->phpbb_root_path . '../tmp/container.php';
     if (is_file($this->filename)) {
         unlink($this->filename);
     }
     parent::setUp();
 }