mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-02 14:12:51 +02:00
[Galactica] V5 - tests
This commit is contained in:
parent
a3ce2679e6
commit
23b1794321
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
||||||
run: ./vendor/bin/phpunit --coverage-clover build/logs/coverage.xml
|
run: ./vendor/bin/phpunit --coverage-clover build/logs/coverage.xml
|
||||||
- name: Run Coveralls
|
- name: Run Coveralls
|
||||||
env:
|
env:
|
||||||
XDEBUG_MODE: coverage
|
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./vendor/bin/php-coveralls -v --coverage_clover build/logs/coverage.xml
|
run: ./vendor/bin/php-coveralls -v --coverage_clover build/logs/coverage.xml
|
||||||
|
|
||||||
unit_tests_81:
|
unit_tests_81:
|
||||||
|
@ -54,7 +54,3 @@ jobs:
|
||||||
env:
|
env:
|
||||||
XDEBUG_MODE: coverage
|
XDEBUG_MODE: coverage
|
||||||
run: ./vendor/bin/phpunit --coverage-clover build/logs/coverage.xml
|
run: ./vendor/bin/phpunit --coverage-clover build/logs/coverage.xml
|
||||||
- name: Run Coveralls
|
|
||||||
env:
|
|
||||||
XDEBUG_MODE: coverage
|
|
||||||
run: ./vendor/bin/php-coveralls -v --coverage_clover build/logs/coverage.xml
|
|
||||||
|
|
|
@ -441,7 +441,7 @@ class Runtime
|
||||||
*/
|
*/
|
||||||
public function getHostPort(): ?int
|
public function getHostPort(): ?int
|
||||||
{
|
{
|
||||||
$info = explode(':', $this->getWorkingHost());
|
$info = explode(':', strval($this->getWorkingHost()));
|
||||||
return isset($info[1]) ? intval($info[1]) : null;
|
return isset($info[1]) ? intval($info[1]) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -450,7 +450,7 @@ class Runtime
|
||||||
*/
|
*/
|
||||||
public function getHostName(): ?string
|
public function getHostName(): ?string
|
||||||
{
|
{
|
||||||
if (strpos($this->getWorkingHost(), ':') === false) {
|
if (strpos(strval($this->getWorkingHost()), ':') === false) {
|
||||||
return $this->getWorkingHost();
|
return $this->getWorkingHost();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue