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'));
 }