src/Module.php
public function _before(TestInterface $test)
    {
        $this->init();

        $this->client = new Connector();
        $this->client->setRouter($this->container->get(RouterInterface::class));

        if (isset($this->baseRequest)) {
            $this->client->setBaseRequest($this->baseRequest);
        }
        
        if (isset($this->baseResponse)) {
            $this->client->setBaseResponse($this->baseResponse);
        }

        parent::_before($test);
    }
public function _before(TestInterface $test)
    {
        $this->init();

        $this->client = new Connector();
        $this->client->setRouter($this->container->get(RouterInterface::class));

        if (isset($this->baseRequest)) {
            $this->client->setBaseRequest($this->baseRequest);
        }
        
        if (isset($this->baseResponse)) {
            $this->client->setBaseResponse($this->baseResponse);
        }

        parent::_before($test);
    }
public function _before ( TestInterface $ test ) { $ this -> init ( ) ; $ this -> client = new Connector ( ) ; $ this -> client -> setRouter ( $ this -> container -> get ( RouterInterface :: class ) ) ; if ( isset ( $ this -> baseRequest ) ) { $ this -> client -> setBaseRequest ( $ this -> baseRequest ) ; } if ( isset ( $ this -> baseResponse ) ) { $ this -> client -> setBaseResponse ( $ this -> baseResponse ) ; } parent :: _before ( $ test ) ; }
Before each test

@param TestInterface $test
Before each test