Skip to content

Commit

Permalink
Up phpunit and add composer attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ariselseng committed Feb 2, 2020
1 parent b4cc5f1 commit 98305bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"name": "ariselseng/norwegianbanks",
"license": "MIT",
"version": "0.5",
"autoload": {
"psr-4": {
"Ariselseng\\NorwegianBanks\\": "src/"
Expand All @@ -12,7 +14,7 @@
"guzzlehttp/guzzle": "^6.5"
},
"require-dev": {
"phpunit/phpunit": "4.*"
"phpunit/phpunit": "~7.0"
},
"autoload-dev": {
"psr-4": {
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
verbose="true"
>
<testsuites>
Expand Down
13 changes: 7 additions & 6 deletions tests/NorwegianBanksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@
use Ariselseng\NorwegianBanks\NorwegianBanks;
use Ariselseng\NorwegianBanks\NorwegianBanksStatic;

class NorwegianBanksTest extends \PHPUnit_Framework_TestCase
class NorwegianBanksTest extends \PHPUnit\Framework\TestCase
{
private $norwegianBanks;
protected $notRealAccountNumber = '1234.56.78903';
protected $notRealAccountNumberWithSpaces = '1234 56 78903';
protected $notRealAccountNumberUnformatted = '12345678903';

protected $accounts = [
[
'bankCode' => 'DNBANOKK',
Expand All @@ -21,13 +26,9 @@ class NorwegianBanksTest extends \PHPUnit_Framework_TestCase
'number' => '3000.27.79419'
],
];
protected $notRealAccountNumber = '1234.56.78903';
protected $notRealAccountNumberWithSpaces = '1234 56 78903';
protected $notRealAccountNumberUnformatted = '12345678903';

private $norwegianBanks;

public function __construct()
public function setUp()
{
$this->norwegianBanks = new NorwegianBanks();
}
Expand Down

0 comments on commit 98305bb

Please # to comment.