Skip to content

Commit

Permalink
Moved test reader to source
Browse files Browse the repository at this point in the history
  • Loading branch information
mnavarrocarter committed Apr 29, 2021
1 parent 4230144 commit 273aa20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ResourceHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ trait ResourceHelper
{
/**
* @var resource
* @psalm-var resource|closed-resource
*/
private $resource;

Expand Down
3 changes: 3 additions & 0 deletions tests/TestReader.php → src/TestReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

/**
* Class TestReader.
*
* This reader is designed to be used in tests, as it is somewhat complex to
* mock methods that take arguments passed by reference.
*/
final class TestReader implements ReadSeeker
{
Expand Down
Empty file added tests/.gitignore
Empty file.

0 comments on commit 273aa20

Please sign in to comment.