We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1405ced commit d3eb957Copy full SHA for d3eb957
.github/workflows/tests.yml
@@ -54,3 +54,5 @@ jobs:
54
55
- name: Run tests
56
run: vendor/bin/phpunit --coverage-text
57
+ env:
58
+ PORT: ${{ job.services.mysql.ports[3306] }}
phpunit.xml
@@ -15,4 +15,7 @@
15
<directory suffix=".php">src/</directory>
16
</include>
17
</source>
18
+ <php>
19
+ <env name="PORT" value="3306"/>
20
+ </php>
21
</phpunit>
tests/Integration/BaseCase.php
@@ -40,7 +40,7 @@ protected function setUp(): void
40
->withUser('root')
41
->withHost('127.0.0.1')
42
->withPassword('root')
43
- ->withPort(3306)
+ ->withPort((int) $_ENV['PORT'])
44
->withEventsIgnore($this->getIgnoredEvents());
45
46
$this->connect();
0 commit comments