Skip to content
Open
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
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"require": {},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.0",
"phpunit/phpunit": "^5.7",
"symfony/var-dumper": "^3.2"
"phpunit/phpunit": "^7.5",
"symfony/var-dumper": "4.3"
},
"scripts": {
"test": "phpunit",
Expand Down
3 changes: 1 addition & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
stopOnFailure="false">
<testsuites>
<testsuite name="Application Test Suite">
<directory>tests</directory>
Expand Down
4 changes: 2 additions & 2 deletions src/SnapshotAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ trait SnapshotAssertions
*
* @param mixed $expected
* @param string|null $identifier An additional identifier to append to the snapshot ID
* @param string|null $message A message to throw in case of error
* @param string $message A message to throw in case of error
*/
protected function assertEqualsSnapshot($expected, $identifier = null, $message = null)
protected function assertEqualsSnapshot($expected, $identifier = null, $message = '')
{
SnapshotsManager::setSuite($this);
$snapshot = SnapshotsManager::upsertSnapshotContents($identifier, $expected);
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Madewithlove\PhpunitSnapshots;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase as PHPUnitFrameworkTestCase;

abstract class TestCase extends PHPUnit_Framework_TestCase
abstract class TestCase extends PHPUnitFrameworkTestCase
{
use SnapshotAssertions;
}