Skip to content

Commit 8e8e1cc

Browse files
authored
Merge pull request #2 from peter279k/test_improvement
Test improvement
2 parents 014b90e + 4d99ef5 commit 8e8e1cc

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: php
2-
dist: trusty
32
php:
43
- '7.1'
54
- '7.2'
65
- '7.3'
6+
- '7.4'
77
install:
8-
- composer update
8+
- composer install
99
script:
1010
- ./vendor/bin/phpunit --coverage-clover ./tests/Logs/clover.xml
1111
after_script:

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,10 @@
2020
"psr-4": {
2121
"DivineOmega\\Postcodes\\": "src/"
2222
}
23+
},
24+
"autoload-dev": {
25+
"psr-4": {
26+
"DivineOmega\\Postcodes\\Tests\\": "tests/Unit/"
27+
}
2328
}
2429
}

tests/Unit/BasicUsageTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace DivineOmega\Postcodes\Tests;
4+
35
use DivineOmega\Postcodes\Exceptions\InvalidPostcodeException;
46
use DivineOmega\Postcodes\Utils\Generator;
57
use DivineOmega\Postcodes\Utils\Tokenizer;

tests/Unit/PostcodesIoTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace DivineOmega\Postcodes\Tests;
4+
35
use DivineOmega\Postcodes\Objects\PostcodesIo;
46
use PHPUnit\Framework\TestCase;
57

0 commit comments

Comments
 (0)