public function setPath($path) { $this->path = (string) $path; return $this; }
/** @test */ public function it_sets_a_path() { $path = __DIR__ . '/stubs/module.json'; $this->assertEquals($path, $this->json->getPath()); $this->json->setPath('some/path.json'); $this->assertEquals('some/path.json', $this->json->getPath()); }