diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 83470d4b..310300bc 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -61,4 +61,11 @@ jobs: mkdir -p build/logs phpunit --configuration phpunit.xml --coverage-clover build/logs/clover.xml --debug env: - XDEBUG_MODE: coverage \ No newline at end of file + XDEBUG_MODE: coverage + + # Шаг 9: Отправка данных о покрытии в Coveralls + - name: Send coverage to Coveralls + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: build/logs/clover.xml \ No newline at end of file diff --git a/tests/RouterAnnotationTraitTest.php b/tests/RouterAnnotationTraitTest.php deleted file mode 100755 index 6ec7edc8..00000000 --- a/tests/RouterAnnotationTraitTest.php +++ /dev/null @@ -1,59 +0,0 @@ - - * @license https://mit-license.org/ MIT - */ - -namespace Rudra\Router\Tests; - -use Rudra\Container\{Facades\Rudra,Interfaces\RudraInterface}; -use Rudra\Annotation\Annotation; -use Rudra\Router\Router as Rtr; -use Rudra\Router\RouterFacade as Router; -use PHPUnit\Framework\TestCase as PHPUnit_Framework_TestCase; - -class RouterAnnotationTraitTest extends PHPUnit_Framework_TestCase -{ -// protected function setContainer() -// { -// Rudra::binding([RudraInterface::class => Rudra::run()]); -// Rudra::services(["router" => [Rtr::class, "stub\\"]]); -// Rudra::set([Annotation::class, Annotation::class]); -// Router::setNamespace("Rudra\\Router\\Tests\\Stub\\"); -// } - -// public function testAnnotation() -// { -// $_SERVER["REQUEST_URI"] = "test/123"; -// $_SERVER["REQUEST_METHOD"] = "GET"; - -// $this->setContainer(); -// Router::annotation("MainController", "actionIndex"); -// $this->assertEquals("actionIndex", Rudra::config()->get("actionIndex")); -// } - -// public function testAnnotationCollector() -// { -// $_SERVER["REQUEST_URI"] = "test/123"; -// $_SERVER["REQUEST_METHOD"] = "GET"; - -// $this->setContainer(); -// Router::annotationCollector([["MainController", "actionIndex"]]); - -// $this->assertEquals("actionIndex", Rudra::config()->get("actionIndex")); -// } - -// public function testAnnotationCollectorMultilevel() -// { -// $_SERVER["REQUEST_URI"] = "test/123"; -// $_SERVER["REQUEST_METHOD"] = "GET"; - -// $this->setContainer(); -// Router::annotationCollector(["blog" => ["MainController", "actionIndex"]]); - -// $this->assertEquals("actionIndex", Rudra::config()->get("actionIndex")); -// } -}