json() 공개 메소드

Get json contents.
public json ( $file = null ) : Json
리턴 Json
예제 #1
0
 /** @test */
 public function it_reads_module_json_files()
 {
     $jsonModule = $this->module->json();
     $composerJson = $this->module->json('composer.json');
     $this->assertInstanceOf(Json::class, $jsonModule);
     $this->assertEquals('0.1', $jsonModule->get('version'));
     $this->assertInstanceOf(Json::class, $composerJson);
     $this->assertEquals('asgard-module', $composerJson->get('type'));
 }