Skip to content

Commit

Permalink
Mockery 1.6.7 > Using atMost()->times(1) to avoid deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
thirsch committed Feb 11, 2024
1 parent 097f263 commit 9454f46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/Swift/CharacterStream/ArrayCharacterStreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ public function testByteStreamCanBeImportingUsesValidator()
$stream = new Swift_CharacterStream_ArrayCharacterStream($factory, 'utf-8');

$os->shouldReceive('setReadPointer')
->between(0, 1)
->atMost()
->times(1)
->with(0);
$os->shouldReceive('read')->once()->andReturn(pack('C*', 0xD0));
$os->shouldReceive('read')->once()->andReturn(pack('C*', 0x94));
Expand Down Expand Up @@ -284,7 +285,8 @@ public function testImportingStreamProducesCorrectCharArray()
$stream = new Swift_CharacterStream_ArrayCharacterStream($factory, 'utf-8');

$os->shouldReceive('setReadPointer')
->between(0, 1)
->atMost()
->times(1)
->with(0);
$os->shouldReceive('read')->once()->andReturn(pack('C*', 0xD0));
$os->shouldReceive('read')->once()->andReturn(pack('C*', 0x94));
Expand Down

0 comments on commit 9454f46

Please sign in to comment.