public function withCode(int $expectedCode): self
    {
        assertThat(
                $this->actualException->getCode(),
                new Wrap(equals($expectedCode), 'exception code %s')
        );
        return $this;
    }
public function withCode(int $expectedCode): self
    {
        assertThat(
                $this->actualException->getCode(),
                new Wrap(equals($expectedCode), 'exception code %s')
        );
        return $this;
    }
public function withCode ( int $ expectedCode ) : self { assertThat ( $ this -> actualException -> getCode ( ) , new Wrap ( equals ( $ expectedCode ) , 'exception code %s' ) ) ; return $ this ; }
asserts actual exception code equals expected code

@api
@param   int  $expectedCode
@return  \bovigo\assert\CatchedException
asserts actual exception code equals expected code