/** * Instructs the finder mock to return the given text when an example is requested and verifies that that is only * done once. * * @param string $exampleText * * @return void */ private function whenExampleTxtFileContainsAndMustBeCalledOnlyOnce($exampleText) { $this->finderMock->shouldReceive('find')->once()->andReturn($exampleText); }
/** * Instructs the finder dependency to return the given text when an example file is to be found. * * @param string $exampleText * * @return void */ private function whenExampleFileContains($exampleText) { $this->finderMock->shouldReceive('find')->andReturn($exampleText); }