Skip to content
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
15 changes: 13 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
steps:
- name: Checkout
uses: actions/checkout@v1
Expand All @@ -32,9 +33,10 @@ jobs:
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
tools: none
tools: composer:2.2
ini-values: assert.exception=1, zend.assertions=1


- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
Expand All @@ -46,9 +48,18 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
- name: Composer self-update
if: ${{ !contains(fromJSON('["5.6", "7.0", "7.1"]'), matrix.php-version) }}
run: composer self-update

- name: Install dependencies (PHP 5.6-8.1)
if: ${{ matrix.php-version != '8.2' }}
run: composer install --no-interaction --prefer-dist

- name: Install dependencies (PHP 8.2)
if: ${{ matrix.php-version == '8.2' }}
run: composer install --no-interaction --prefer-dist --ignore-platform-req=php

- name: Run test suite
run: php -d xdebug.mode=coverage ./vendor/bin/phpunit --coverage-clover=coverage.xml

Expand Down
2 changes: 2 additions & 0 deletions tests/FakeObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

class FakeObject
Comment thread
harikt marked this conversation as resolved.
{
public $id;
public $name;
public $foo;

public function __construct($foo)
Expand Down
3 changes: 3 additions & 0 deletions tests/PdoDependent.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

class PdoDependent
{
/** @var PDO */
private $pdo;

public function __construct(PDO $pdo)
{
$this->pdo = $pdo;
Expand Down
3 changes: 3 additions & 0 deletions tests/Profiler/ProfilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

class ProfilerTest extends TestCase
{
/** @var Profiler */
private $profiler;

protected function set_up()
{
$this->profiler = new Profiler();
Expand Down