Last active
October 11, 2023 13:59
-
-
Save mariano/328a0f41c678113bf573e6d5d6c1aa03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$inputFile = Mockery::mock(SplFileObject::class, ["php://memory"]); | |
$inputFile->shouldReceive("setMaxLineLen") | |
->with(Csv::MAXIMUM_LINE_LENGTH) | |
->once() | |
->shouldReceive("eof") | |
->with() | |
->andReturn(false) | |
->once() | |
->shouldReceive("fgets") | |
->with() | |
->andReturn("LINE1") | |
->shouldReceive("eof") | |
->with() | |
->andReturn(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment