Skip to content

Commit c186d98

Browse files
Merge branch 'master' into object_driver
2 parents 1f73c10 + 4496294 commit c186d98

File tree

10 files changed

+54
-32
lines changed

10 files changed

+54
-32
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: https://spatie.be/open-source/support-us

.github/workflows/run-tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: true
11+
matrix:
12+
os: [ubuntu-latest]
13+
php: [7.4]
14+
dependency-version: [prefer-lowest, prefer-stable]
15+
16+
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v1
21+
22+
- name: Cache dependencies
23+
uses: actions/cache@v1
24+
with:
25+
path: ~/.composer/cache/files
26+
key: dependencies-php-${{ matrix.php }}-${{ matrix.os }}-composer-${{ hashFiles('composer.json') }}
27+
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v1
30+
with:
31+
php-version: ${{ matrix.php }}
32+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
33+
coverage: none
34+
35+
- name: Install dependencies
36+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
37+
38+
- name: Execute tests
39+
run: vendor/bin/phpunit

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to `phpunit-snapshot-assertions` will be documented in this file
44

5+
## 3.1.1 - 2019-02-10
6+
- add support for PHPUnit 9 (#86)
7+
58
## 3.1.0 - 2019-12-02
69
- drop support for PHP 7.3
710

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/phpunit-snapshot-assertions.svg?style=flat-square)](https://packagist.org/packages/spatie/phpunit-snapshot-assertions)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
5-
[![Build Status](https://img.shields.io/travis/spatie/phpunit-snapshot-assertions/master.svg?style=flat-square)](https://travis-ci.org/spatie/phpunit-snapshot-assertions)
5+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/spatie/phpunit-snapshot-assertions/run-tests?label=tests)](https://github.com/spatie/phpunit-snapshot-assertions/actions?query=workflow%3Arun-tests+branch%3Amaster)
66
[![Quality Score](https://img.shields.io/scrutinizer/g/spatie/phpunit-snapshot-assertions.svg?style=flat-square)](https://scrutinizer-ci.com/g/spatie/phpunit-snapshot-assertions)
77
[![StyleCI](https://styleci.io/repos/75926188/shield?branch=master)](https://styleci.io/repos/75926188)
88
[![Total Downloads](https://img.shields.io/packagist/dt/spatie/phpunit-snapshot-assertions.svg?style=flat-square)](https://packagist.org/packages/spatie/phpunit-snapshot-assertions)
@@ -68,6 +68,12 @@ FAILURES!
6868
Tests: 1, Assertions: 1, Failures: 1.
6969
```
7070

71+
## Support us
72+
73+
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
74+
75+
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
76+
7177
## Installation
7278

7379
You can install the package via composer:
@@ -297,13 +303,6 @@ We publish all received postcards [on our company website](https://spatie.be/en/
297303
- [Alex Vanderbist](https://github.com/alexvanderbist)
298304
- [All Contributors](../../contributors)
299305

300-
## Support us
301-
302-
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).
303-
304-
Does your business depend on our contributions? Reach out and support us on [Patreon](https://www.patreon.com/spatie).
305-
All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
306-
307306
## License
308307

309308
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"require": {
2323
"php": "^7.4",
2424
"ext-dom": "*",
25-
"phpunit/phpunit": "^8.3",
25+
"phpunit/phpunit": "^8.3|^9.0",
2626
"symfony/property-access": "^4.0|^5.0",
2727
"symfony/serializer": "^4.0|^5.0",
2828
"symfony/yaml": "^4.0|^5.0"

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
</whitelist>
2424
</filter>
2525
<logging>
26-
<log type="tap" target="build/report.tap"/>
2726
<log type="junit" target="build/report.junit.xml"/>
2827
<log type="coverage-html" target="build/coverage"/>
2928
<log type="coverage-text" target="build/coverage.txt"/>

src/MatchesSnapshots.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function markTestIncompleteIfSnapshotsHaveChanged()
3636
return;
3737
}
3838

39-
$formattedMessages = implode(PHP_EOL, array_map(fn(string $message) => "- {$message}", $this->snapshotChanges));
39+
$formattedMessages = implode(PHP_EOL, array_map(fn (string $message) => "- {$message}", $this->snapshotChanges));
4040

4141
$this->markTestIncomplete($formattedMessages);
4242
}

tests/Unit/Drivers/JsonDriverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function it_can_serialize_a_json_string_to_pretty_json()
1414
$driver = new JsonDriver();
1515

1616
$expected = implode(PHP_EOL, [
17-
'{',
17+
'{',
1818
' "foo": "bar"',
1919
'}',
2020
'',

tests/Unit/Drivers/YamlDriverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function it_can_serialize_a_yaml_array()
3030
'foo: bar',
3131
'baz: qux',
3232
'',
33-
]);
33+
]);
3434

3535
$this->assertEquals($expected, $driver->serialize([
3636
'foo' => 'bar',

0 commit comments

Comments
 (0)