Skip to content

Commit 6b9aeb2

Browse files
committed
Moved tests to Features. Added unit tests.
1 parent dc93f82 commit 6b9aeb2

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"require-dev": {
1919
"phpunit/phpunit": "^5.7",
20+
"mockery/mockery": "^0.9.9",
2021
"laravel/laravel": "^5.2"
2122
},
2223
"autoload": {
@@ -25,9 +26,10 @@
2526
}
2627
},
2728
"autoload-dev" : {
28-
"psr-4": {
29-
"Grimzy\\LaravelSpatial\\Tests\\" : "tests/"
30-
}
29+
"classmap" : [
30+
"tests/Unit",
31+
"tests/Feature"
32+
]
3133
},
3234
"extra": {
3335
"branch-alias": {

phpunit.xml.dist

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
processIsolation="false"
1010
stopOnFailure="false">
1111
<testsuites>
12-
<testsuite name="Feature Tests">
13-
<directory suffix="Test.php">./tests/Feature</directory>
12+
<testsuite name="Unit Tests">
13+
<directory suffix="Test.php">./tests/Unit</directory>
1414
</testsuite>
15+
<!--<testsuite name="Feature Tests">-->
16+
<!--<directory suffix="Test.php">./tests/Feature</directory>-->
17+
<!--</testsuite>-->
1518
</testsuites>
1619
<php>
1720
<env name="APP_ENV" value="testing"/>

0 commit comments

Comments
 (0)