Skip to content

Commit 12f2c21

Browse files
authored
1 parent 7595ac7 commit 12f2c21

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
restore-keys: ${{ runner.os }}-composer-
128128
- name: Enable code coverage
129129
if: matrix.coverage
130-
run: echo '::set-env name=COVERAGE::1'
130+
run: echo "COVERAGE=1" >> $GITHUB_ENV
131131
- name: Remove Doctrine MongoDB ODM
132132
if: (startsWith(matrix.php, '7.1') || startsWith(matrix.php, 'rc'))
133133
run: |
@@ -222,7 +222,7 @@ jobs:
222222
restore-keys: ${{ runner.os }}-composer-
223223
- name: Enable code coverage
224224
if: matrix.coverage
225-
run: echo '::set-env name=COVERAGE::1'
225+
run: echo "COVERAGE=1" >> $GITHUB_ENV
226226
- name: Remove Doctrine MongoDB ODM
227227
if: startsWith(matrix.php, '7.1')
228228
run: |

tests/JsonLd/Serializer/ObjectNormalizerTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public function testNormalize()
4848
'@id' => '_:1234',
4949
]);
5050

51-
$normalizer = new ObjectNormalizer( // @phpstan-ignore-line
52-
$serializerProphecy->reveal(),
51+
$normalizer = new ObjectNormalizer(
52+
$serializerProphecy->reveal(), // @phpstan-ignore-line
5353
$iriConverterProphecy->reveal(),
5454
$contextBuilderProphecy->reveal()
5555
);
@@ -77,8 +77,8 @@ public function testNormalizeEmptyArray()
7777
$contextBuilderProphecy = $this->prophesize(AnonymousContextBuilderInterface::class);
7878
$contextBuilderProphecy->getAnonymousResourceContext($dummy, Argument::type('array'))->shouldNotBeCalled();
7979

80-
$normalizer = new ObjectNormalizer( // @phpstan-ignore-line
81-
$serializerProphecy->reveal(),
80+
$normalizer = new ObjectNormalizer(
81+
$serializerProphecy->reveal(), // @phpstan-ignore-line
8282
$iriConverterProphecy->reveal(),
8383
$contextBuilderProphecy->reveal()
8484
);
@@ -101,8 +101,8 @@ public function testNormalizeWithOutput()
101101
$contextBuilderProphecy = $this->prophesize(AnonymousContextBuilderInterface::class);
102102
$contextBuilderProphecy->getAnonymousResourceContext($dummy, ['iri' => '/dummy/1234', 'api_resource' => $dummy])->shouldBeCalled()->willReturn(['@id' => '/dummy/1234', '@type' => 'Dummy', '@context' => []]);
103103

104-
$normalizer = new ObjectNormalizer( // @phpstan-ignore-line
105-
$serializerProphecy->reveal(),
104+
$normalizer = new ObjectNormalizer(
105+
$serializerProphecy->reveal(), // @phpstan-ignore-line
106106
$iriConverterProphecy->reveal(),
107107
$contextBuilderProphecy->reveal()
108108
);
@@ -131,8 +131,8 @@ public function testNormalizeWithContext()
131131
$contextBuilderProphecy = $this->prophesize(AnonymousContextBuilderInterface::class);
132132
$contextBuilderProphecy->getAnonymousResourceContext($dummy, ['iri' => '/dummy/1234', 'api_resource' => $dummy, 'has_context' => true])->shouldBeCalled()->willReturn(['@id' => '/dummy/1234', '@type' => 'Dummy']);
133133

134-
$normalizer = new ObjectNormalizer( // @phpstan-ignore-line
135-
$serializerProphecy->reveal(),
134+
$normalizer = new ObjectNormalizer(
135+
$serializerProphecy->reveal(), // @phpstan-ignore-line
136136
$iriConverterProphecy->reveal(),
137137
$contextBuilderProphecy->reveal()
138138
);

0 commit comments

Comments
 (0)