Skip to content

Commit c602ed5

Browse files
authored
Merge pull request #45 from Vinelab/laravel-9
Support Laravel 9
2 parents f3dda37 + 3ac337e commit c602ed5

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
language: php
22
php:
33
- 7.1
4+
- 7.4
5+
- 8.0
6+
- 8.1
47
before_script: composer install

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^7.1.3|^8.0.0",
21-
"illuminate/bus": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0",
22-
"illuminate/console": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0",
23-
"illuminate/contracts": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0",
24-
"illuminate/http": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0",
25-
"illuminate/log": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0",
26-
"illuminate/container": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0",
27-
"illuminate/queue": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0",
28-
"illuminate/routing": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0",
29-
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0",
20+
"php": "^7.1.3|^8.0.0|^8.1.0",
21+
"illuminate/bus": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0",
22+
"illuminate/console": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0",
23+
"illuminate/contracts": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0",
24+
"illuminate/http": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0",
25+
"illuminate/log": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0",
26+
"illuminate/container": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0",
27+
"illuminate/queue": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0",
28+
"illuminate/routing": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0",
29+
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0",
3030
"openzipkin/zipkin": "~2.0.2|~3.0",
3131
"psr/http-message": "~1.0",
3232
"ramsey/uuid": "~3.0|~4.0"
@@ -36,7 +36,7 @@
3636
"guzzlehttp/psr7": "~1.0|~2.0",
3737
"mockery/mockery": "~1.0",
3838
"php-amqplib/php-amqplib": "~2.8|~3.0",
39-
"phpunit/phpunit": "~7.0|~8.0",
39+
"phpunit/phpunit": "~7.0|~8.0|~9.0",
4040
"vinelab/http": "~1.5",
4141
"lucid-arch/laravel-foundation": "^7.0|^8.0",
4242
"lucidarch/lucid": "^1.0"

tests/Zipkin/TraceRequestsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function trace_http_requests()
4848
$reporter->shouldHaveReceived('report')->with(Mockery::on(function ($spans) {
4949
$span = $this->shiftSpan($spans);
5050

51-
$this->assertRegExp('/^POST \/?shipments\/{id}$/', $span->getName());
51+
$this->assertMatchesRegularExpression('/^POST \/?shipments\/{id}$/', $span->getName());
5252
$this->assertEquals('http', Arr::get($span->getTags(), 'type'));
5353
$this->assertEquals('POST', Arr::get($span->getTags(), 'request_method'));
5454
$this->assertEquals('shipments/3242', Arr::get($span->getTags(), 'request_path'));

tests/Zipkin/TracerTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ public function control_span_duration()
130130

131131
$reporter->shouldHaveReceived('report')->with(Mockery::on(function ($spans) {
132132
$duration = $this->shiftSpan($spans)->getDuration();
133+
133134
$this->assertTrue($duration > 0);
134135
return true;
135136
}));
@@ -151,7 +152,7 @@ public function control_span_relationships()
151152
$reporter->shouldHaveReceived('report')->with(Mockery::on(function ($spans) {
152153
$span = $this->shiftSpan($spans);
153154

154-
$this->assertRegExp($this->getRegexpForUUID(), Arr::get($span->getTags(), 'uuid'));
155+
$this->assertMatchesRegularExpression($this->getRegexpForUUID(), Arr::get($span->getTags(), 'uuid'));
155156
$this->assertNotNull($span->getSpanId());
156157
$this->assertNull($span->getParentId());
157158

@@ -340,9 +341,9 @@ public function propagate_vinelab_http()
340341

341342
$request = $tracer->inject([], Formats::VINELAB_HTTP);
342343

343-
$this->assertRegExp('/x-b3-traceid: \w/', Arr::get($request, 'headers.0', ''));
344-
$this->assertRegExp('/x-b3-spanid: \w/', Arr::get($request, 'headers.1', ''));
345-
$this->assertRegExp('/x-b3-sampled: \d/', Arr::get($request, 'headers.2', ''));
344+
$this->assertMatchesRegularExpression('/x-b3-traceid: \w/', Arr::get($request, 'headers.0', ''));
345+
$this->assertMatchesRegularExpression('/x-b3-spanid: \w/', Arr::get($request, 'headers.1', ''));
346+
$this->assertMatchesRegularExpression('/x-b3-sampled: \d/', Arr::get($request, 'headers.2', ''));
346347
}
347348

348349
/**

0 commit comments

Comments
 (0)