getSampleJsonString() public static method

Return the fixture sample JSON string
public static getSampleJsonString ( ) : string
return string Sample JSON string
 public function testLoad()
 {
     $json = Fixtures::getSampleJsonString();
     $this->assertEquals(json_decode($json, true), $this->loader->load($json));
 }
Example #2
0
 /**
  * Test loading a JSON string
  */
 public function testSupportsWithJsonString()
 {
     $this->jsonLoader->expects($this->once())->method('isFile')->willReturn(false);
     $json = Fixtures::getSampleJsonString();
     $this->assertTrue($this->jsonLoader->supports($json));
 }