[Galactica] V5 - tests

This commit is contained in:
Andrés Montañez 2022-04-10 01:41:27 -03:00
parent a3ce2679e6
commit 23b1794321
No known key found for this signature in database
GPG Key ID: 97E9F675F4C03DE2
2 changed files with 3 additions and 7 deletions

View File

@ -32,7 +32,7 @@ jobs:
run: ./vendor/bin/phpunit --coverage-clover build/logs/coverage.xml
- name: Run Coveralls
env:
XDEBUG_MODE: coverage
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./vendor/bin/php-coveralls -v --coverage_clover build/logs/coverage.xml
unit_tests_81:
@ -54,7 +54,3 @@ jobs:
env:
XDEBUG_MODE: coverage
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

View File

@ -441,7 +441,7 @@ class Runtime
*/
public function getHostPort(): ?int
{
$info = explode(':', $this->getWorkingHost());
$info = explode(':', strval($this->getWorkingHost()));
return isset($info[1]) ? intval($info[1]) : null;
}
@ -450,7 +450,7 @@ class Runtime
*/
public function getHostName(): ?string
{
if (strpos($this->getWorkingHost(), ':') === false) {
if (strpos(strval($this->getWorkingHost()), ':') === false) {
return $this->getWorkingHost();
}