<commit_before><?php namespace PHPieces\ANZGateway;

use PHPUnit_Framework_TestCase;

class TestCase extends PHPUnit_Framework_TestCase
{
    protected $successResponse = '';
    protected $failureResponse = '';

    public function setUp()
    {
        parent::setUp();
        $successResponse = [
            'vpc_AVSResultCode'   => 'Unsupported',
            'vpc_AcqAVSRespCode'  => 'Unsupported',
            'vpc_AcqCSCRespCode'  => 'Unsupported',
            'vpc_AcqResponseCode' => '00',
            'vpc_Amount'          => '100',
            'vpc_AuthorizeId'     => '185043',
            'vpc_BatchNo'         => '20170210',
            'vpc_CSCResultCode'   => 'Unsupported',
            'vpc_Card'            => 'MC',
            'vpc_Command'         => 'pay',
            'vpc_Locale'          => 'en_AU',
            'vpc_MerchTxnRef'     => '67478',
            'vpc_Merchant'        => Config::load('egate.MERCHANT_ID'),
            'vpc_Message'         => 'Approved',
            'vpc_OrderInfo'       => '6605',
            'vpc_ReceiptNo'       => '170210185043',
            'vpc_TransactionNo'   => '1250900',
            'vpc_TxnResponseCode' => '0',
            'vpc_Version'         => '1'
        ];

        $failureResponse = [
            'vpc_Amount'          => '0',
            'vpc_BatchNo'         => '0',
            'vpc_Locale'          => 'en',
            'vpc_Message'         => 'Required field vpc_Merchant was not present in the request',
            'vpc_TransactionNo'   => '0',
            'vpc_TxnResponseCode' => '7'
        ];

        $this->successResponse = http_build_query($successResponse);
        $this->failureResponse = http_build_query($failureResponse);

        Config::set('egate', [
            'MERCHANT_ID' => 'FOOBAR',
            'MERCHANT_ACCESS_CODE' => '1QAZ2WSX'
        ]);
    }
}<commit_msg>moved up config dummy data config was being called before dummy data was set, causing a warning on travis ci<commit_after><?php

namespace PHPieces\ANZGateway;

use PHPUnit_Framework_TestCase;

class TestCase extends PHPUnit_Framework_TestCase
{
    protected $successResponse = '';
    protected $failureResponse = '';

    public function setUp()
    {
        parent::setUp();

        Config::set('egate', [
            'MERCHANT_ID'          => 'FOOBAR',
            'MERCHANT_ACCESS_CODE' => '1QAZ2WSX'
        ]);

        $successResponse = [
            'vpc_AVSResultCode'   => 'Unsupported',
            'vpc_AcqAVSRespCode'  => 'Unsupported',
            'vpc_AcqCSCRespCode'  => 'Unsupported',
            'vpc_AcqResponseCode' => '00',
            'vpc_Amount'          => '100',
            'vpc_AuthorizeId'     => '185043',
            'vpc_BatchNo'         => '20170210',
            'vpc_CSCResultCode'   => 'Unsupported',
            'vpc_Card'            => 'MC',
            'vpc_Command'         => 'pay',
            'vpc_Locale'          => 'en_AU',
            'vpc_MerchTxnRef'     => '67478',
            'vpc_Merchant'        => Config::load('egate.MERCHANT_ID'),
            'vpc_Message'         => 'Approved',
            'vpc_OrderInfo'       => '6605',
            'vpc_ReceiptNo'       => '170210185043',
            'vpc_TransactionNo'   => '1250900',
            'vpc_TxnResponseCode' => '0',
            'vpc_Version'         => '1'
        ];

        $failureResponse = [
            'vpc_Amount'          => '0',
            'vpc_BatchNo'         => '0',
            'vpc_Locale'          => 'en',
            'vpc_Message'         => 'Required field vpc_Merchant was not present in the request',
            'vpc_TransactionNo'   => '0',
            'vpc_TxnResponseCode' => '7'
        ];

        $this->successResponse = http_build_query($successResponse);
        $this->failureResponse = http_build_query($failureResponse);
    }
}
{'fraction_non_alphanumeric': 0.13324675324675325, 'fraction_numerical': 0.02857142857142857, 'mean_word_length': 1.7370291400142146, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6467723', 'n_tokens_mistral': 1259, 'n_tokens_neox': 1200, 'n_words': 191}