Skip to content

Commit

Permalink
Update for PHP8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhall17 committed Jan 5, 2021
1 parent 88b2987 commit 3e205e6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@ jobs:
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
ini-values: 'extension=php_fileinfo.dll'

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
11 changes: 11 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@
colors="true"
>
<testsuites>
<testsuite name="All Tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<php>
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
Expand Down
14 changes: 14 additions & 0 deletions tests/Feature/Test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace MacsiDigital\Zoom\Tests\Feature;

use PHPUnit\Framework\TestCase;

class Test extends TestCase
{
/** @test */
public function base_test()
{
$this->assertTrue(true);
}
}

0 comments on commit 3e205e6

Please sign in to comment.