<?php $this->factory->sink($resource)->get('https://example.com');
$this->assertSame(0, ftell($resource));
$this->assertSame('abc123', stream_get_contents($resource));
}
public function testSinkWhenStubbedByPath()
<?php $this->factory->sink($resource)->get('http://foo.com/test');
$this->assertSame(json_encode(['page' => 'foo']), stream_get_contents($resource));
}
public function testCanAssertAgainstOrderOfHttpRequestsWithUrlStrings()