getSampleString() 공개 정적인 메소드

Return a sample string
public static getSampleString ( ) : string
리턴 string Sample string
 /**
  * Test loading config from a valid file
  */
 public function testLoadFileFromString()
 {
     $this->assertEquals(trim(Fixtures::getSampleString()), $this->mock->readFrom(Fixtures::getSampleString()));
 }
예제 #2
0
 /**
  * Test isJson method with invalid JSON string.
  * Valid scenario is tested by the method above
  */
 public function testSupportsWithNonJsonString()
 {
     $this->jsonLoader->expects($this->once())->method('isFile')->willReturn(false);
     $someString = Fixtures::getSampleString();
     $this->assertFalse($this->jsonLoader->supports($someString));
 }