Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrections; Code coverage #24

Merged
merged 5 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
- run: composer install --prefer-dist

- name: "Run Unit Tests"
run: vendor/bin/phpunit --coverage-clover=coverage.xml
run: composer test-coverage

- name: SonarQube Cloud Scan
uses: SonarSource/sonarcloud-github-action@master
Expand Down
Empty file added bin/.gitkeep
Empty file.
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
},
{
"name": "Contributors",
"homepage": "https://github.com/phalcon/cphalcon/graphs/contributors"
"homepage": "https://github.com/phalcon/volt/graphs/contributors"
}
],
"require": {
"php": ">=8.1",
"ext-mbstring": "*"
},
"require-dev": {
"pds/skeleton": "^1.0",
"phalcon/ide-stubs": "^5.8",
"phpstan/phpstan": "^1.11",
"phpunit/phpunit": "^10.5",
Expand All @@ -44,7 +45,7 @@
"Phalcon\\Volt\\": "src/"
},
"files": [
"files/parser.php"
"resources/files/parser.php"
]
},
"autoload-dev": {
Expand All @@ -54,9 +55,9 @@
},
"support": {
"email": "support@phalcon.io",
"issues": "https://github.com/phalcon/cphalcon/issues",
"forum": "https://phalcon.io/forum/",
"source": "https://github.com/phalcon/cphalcon",
"issues": "https://github.com/phalcon/volt/issues",
"discussions": "https://phalcon.io/discussions/",
"source": "https://github.com/phalcon/volt",
"docs": "https://phalcon.io/docs/",
"rss": "https://blog.phalcon.io/rss"
},
Expand Down
37 changes: 36 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added config/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
phalcon-volt-8.1:
container_name: phalcon-volt-8.1
hostname: phalcon-volt-8.1
build: .docker/8.1
build: resources/docker/8.1
tty: true
working_dir: /srv
volumes:
Expand Down
Empty file added docs/.gitkeep
Empty file.
26 changes: 12 additions & 14 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="./phpunit.php"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
cacheResultFile="./tests/support/output"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
verbose="true"
processIsolation="true"
>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="volt/unit">
<directory>./tests/unit</directory>
</testsuite>
</testsuites>
cacheDirectory="./tests/support/output/.phpunit.cache">
<testsuites>
<testsuite name="volt/unit">
<directory>./tests/unit</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
Empty file added public/.gitkeep
Empty file.
31 changes: 0 additions & 31 deletions qodana.yaml

This file was deleted.

Empty file added resources/.gitkeep
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 18 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
sonar.projectKey=phalcon_volt
sonar.organization=phalcon
sonar.tests=tests

sonar.sources=src/
sonar.exclusions=vendor/**,cv/**,tests/**
#sonar.inclusions=

# Source encoding
sonar.sourceEncoding=UTF-8

sonar.language=php

# Path to tests
sonar.tests=tests/
#sonar.test.exclusions=
#sonar.test.inclusions=
sonar.php.coverage.reportPaths=tests/support/coverage.xml

# Exclusions for copy-paste detection
#sonar.cpd.exclusions=
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Phalcon\Volt\Exception;
use PHPUnit\Framework\TestCase;

class CompileStringCest extends TestCase
final class CompileStringTest extends TestCase
{
/**
* Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Phalcon\Volt\Compiler;
use PHPUnit\Framework\TestCase;

final class ExpressionCest extends TestCase
final class ExpressionTest extends TestCase
{
/**
* Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: expression()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Phalcon\Volt\Compiler;
use PHPUnit\Framework\TestCase;

class FunctionCallCest extends TestCase
final class FunctionCallTest extends TestCase
{
/**
* @dataProvider getExamples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Phalcon\Volt\Compiler;
use PHPUnit\Framework\TestCase;

final class SetOptionCest extends TestCase
final class SetOptionTest extends TestCase
{
/**
* Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: setOption() - autoescape
Expand Down