Skip to content

Commit

Permalink
Mini fix on namespace, skip coverage for now due to some weird error
Browse files Browse the repository at this point in the history
  • Loading branch information
noplanman committed May 24, 2024
1 parent 231ab48 commit 6071bb9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ jobs:
run: composer check-code

- name: Run test suite
if: ${{ matrix.php != '8.1'}}
run: composer test-cov
run: composer test

- name: Run test suite (with coverage)
if: ${{ matrix.php == '8.1'}}
run: |
composer test-cov
composer test-cov-upload
# - name: Run test suite
# if: ${{ matrix.php != '8.1'}}
# run: composer test-cov

# - name: Run test suite (with coverage)
# if: ${{ matrix.php == '8.1'}}
# run: |
# wget https://scrutinizer-ci.com/ocular.phar
# composer test-cov
# composer test-cov-upload
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"XDEBUG_MODE=coverage \"vendor/bin/phpunit\" --coverage-clover clover.xml"
],
"test-cov-upload": [
"wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover clover.xml"
"@php ocular.phar code-coverage:upload --format=php-clover clover.xml"
]
},
"config": {
Expand Down
1 change: 0 additions & 1 deletion src/Entities/ReactionType/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Longman\TelegramBot\Entities\ReactionType;

use Longman\TelegramBot\Entities\ChatMember\ReactionTypeNotImplemented;
use Longman\TelegramBot\Entities\Entity;

class Factory extends \Longman\TelegramBot\Entities\Factory
Expand Down
3 changes: 1 addition & 2 deletions src/Entities/ReactionType/ReactionTypeNotImplemented.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?php

namespace Longman\TelegramBot\Entities\ChatMember;
namespace Longman\TelegramBot\Entities\ReactionType;

use Longman\TelegramBot\Entities\Entity;
use Longman\TelegramBot\Entities\ReactionType\ReactionType;

class ReactionTypeNotImplemented extends Entity implements ReactionType
{
Expand Down

0 comments on commit 6071bb9

Please sign in to comment.