public function testGetContentOnInvalidPath()
 {
     $resource = new FileResource(__FILE__ . 'foo');
     $this->assertSame('', $resource->getContent(), '->getContent() returns an empty string when path is invalid');
 }
Beispiel #2
0
 public function testGetContent()
 {
     $resource = new FileResource(__FILE__);
     $this->assertEquals(file_get_contents(__FILE__), $resource->getContent());
 }