Skip to content

Commit 52fc501

Browse files
committed
Changed Mapper from required dependency to suggested dependency.
1 parent d691adb commit 52fc501

File tree

7 files changed

+23
-1
lines changed

7 files changed

+23
-1
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ install:
1919
script:
2020
- bin/test --coverage-clover=build/logs/clover.xml
2121

22+
# Remove mapper and run all non-Mapper tests again.
23+
- composer --dev --no-update-with-dependencies remove scriptfusion/mapper
24+
- '! composer info | awk ''{print $1}'' | grep ^scriptfusion/mapper'
25+
- bin/test --exclude-group Mapper
26+
2227
after_success:
2328
- composer --prefer-source require satooshi/php-coveralls
2429
- vendor/bin/coveralls -v

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,21 @@
1010
"license": "LGPL-3.0",
1111
"require": {
1212
"php": "^5.5|^7",
13-
"scriptfusion/mapper": "^1",
1413
"scriptfusion/static-class": "^1",
1514
"scriptfusion/retry-error-handlers": "^1",
15+
"eloquent/enumeration": "^5",
1616
"psr/cache": "^1",
1717
"zendframework/zend-uri": "^2"
1818
},
1919
"require-dev": {
20+
"scriptfusion/mapper": "^1",
2021
"phpunit/phpunit": "^4",
2122
"mockery/mockery": "^0",
2223
"symfony/process": "^3"
2324
},
25+
"suggest" : {
26+
"scriptfusion/mapper": "Transforms imported data."
27+
},
2428
"autoload": {
2529
"psr-4": {
2630
"ScriptFUSION\\Porter\\": "src"

src/Cache/CacheAdvice.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
/**
77
* Specifies cache behaviour.
8+
*
9+
* @method static SHOULD_CACHE
10+
* @method static SHOULD_NOT_CACHE
11+
* @method static MUST_CACHE
12+
* @method static MUST_NOT_CACHE
813
*/
914
final class CacheAdvice extends AbstractEnumeration
1015
{

test/Integration/Porter/Mapper/Strategy/SubImportTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
/**
99
* @see SubImport
10+
* @group Mapper
1011
*/
1112
final class SubImportTest extends \PHPUnit_Framework_TestCase
1213
{

test/Integration/Porter/PorterTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ public function testImportCountableRecords()
156156
/**
157157
* Tests that when the resource is countable the count is propagated to the outermost collection via a mapped
158158
* collection.
159+
*
160+
* @group Mapper
159161
*/
160162
public function testImportAndMapCountableRecords()
161163
{

test/Unit/Porter/Mapper/PorterMapperTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
use ScriptFUSION\Porter\Porter;
1010
use ScriptFUSION\Porter\PorterAware;
1111

12+
/**
13+
* @see PorterMapper
14+
* @group Mapper
15+
*/
1216
final class PorterMapperTest extends \PHPUnit_Framework_TestCase
1317
{
1418
use MockeryPHPUnitIntegration;

test/Unit/Porter/Mapper/Strategy/SubImportTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
/**
1212
* @see SubImport
13+
* @group Mapper
1314
*/
1415
final class SubImportTest extends \PHPUnit_Framework_TestCase
1516
{

0 commit comments

Comments
 (0)