/** * Test loading config from a valid file */ public function testLoadFileFromString() { $this->assertEquals(trim(Fixtures::getSampleString()), $this->mock->readFrom(Fixtures::getSampleString())); }
/** * 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)); }