for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace FileFetcher\Tests\Integration;
use FileFetcher\LazyStubFileFetcher;
use PHPUnit\Framework\TestCase;
/**
* @covers \FileFetcher\LazyStubFileFetcher
*
* @licence BSD-3-Clause
* @author Jeroen De Dauw < [email protected] >
*/
class LazyStubFileFetcherTest extends TestCase {
public function testCallbackGetsFileUrlAndReturnValueIsReturned() {
$this->assertSame(
file_get_contents( __FILE__ ),
LazyStubFileFetcher::newFromFileUrl( __FILE__ )->fetchFile( 'Whatever' )
);
}