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