Fix CI setup and formatting test
This commit is contained in:
3 files changed
+7
-7
No files matched your search
@@ -46,6 +46,7 @@ jobs:
|
|||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
|
||||||
coverage: none
|
coverage: none
|
||||||
|
tools: composer:v2
|
||||||
|
|
||||||
- name: Setup problem matchers
|
- name: Setup problem matchers
|
||||||
run: |
|
run: |
|
||||||
@@ -55,6 +56,10 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
|
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
|
||||||
|
# PHPUnit 12+ no longer discovers the existing @test annotations.
|
||||||
|
composer require --dev "phpunit/phpunit:^9.5|^10.0|^11.0" --no-interaction --no-update
|
||||||
|
# Allow compatibility testing against older dependency versions in CI only.
|
||||||
|
composer config audit.block-insecure false
|
||||||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
|
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
|
||||||
|
|
||||||
- name: Execute tests
|
- name: Execute tests
|
||||||
|
|||||||
+1
-6
@@ -1,10 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
|
<phpunit bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false">
|
||||||
<coverage>
|
|
||||||
<include>
|
|
||||||
<directory suffix=".php">src/</directory>
|
|
||||||
</include>
|
|
||||||
</coverage>
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Library Program Test Suite">
|
<testsuite name="Library Program Test Suite">
|
||||||
<directory suffix=".php">./tests/</directory>
|
<directory suffix=".php">./tests/</directory>
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ class FormatTest extends TestCase
|
|||||||
{
|
{
|
||||||
$datetime = Jalali::parse('1398-10-11 21:32:35')->formatWord('l d S F');
|
$datetime = Jalali::parse('1398-10-11 21:32:35')->formatWord('l d S F');
|
||||||
|
|
||||||
$this->assertEquals('چهارشنبه یازده ام دی', $datetime);
|
$this->assertEquals('چهارشنبه یازده م دی', $datetime);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFormatQuarter()
|
public function testFormatQuarter()
|
||||||
|
|||||||
Reference in new issue
Block a user