/** * @test */ function it_can_remove_a_line_by_the_key() { $path = $this->get_fixture_path('env-basic'); $lines = FileLines::load($path); $this->assertEquals('BAR', $lines->getDefinition('FOO')); $lines->removeDefinition('FOO'); $this->assertEmpty($lines->getDefinition('FOO')); }
/** * @return $this */ public function load() { $this->lines = FileLines::load($this->path); return $this; }