Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Updates autoloader to load base test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Oct 19, 2016
1 parent 25dbe76 commit bb85703
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
],
"require": {
"php": ">=7.0",
"guzzlehttp/guzzle": "~6.0"
"guzzlehttp/guzzle": "~6.0",
"respect/validation": "^1.1.9"
},
"require-dev": {
"phpunit/phpunit": "~5.0",
Expand All @@ -22,6 +23,11 @@
"CraigPaul\\Moneris\\": "src/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"minimum-stability": "dev",
"prefer-stable": true
}
33 changes: 33 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

class TestCase extends PHPUnit_Framework_TestCase
{
/**
* @var string
*/
protected $amex;

/**
* @var string
*/
protected $mastercard;

/**
* @var string
*/
protected $visa;

/**
* Set up the test environment.
*
* @return void
*/
public function setUp()
{
parent::setUp();

$this->amex = '373599005095005';
$this->mastercard = '5454545454545454';
$this->visa = '4242424242424242';
}
}

0 comments on commit bb85703

Please sign in to comment.