public function testRemoveAChunk() { $this->prepareTextChainForChunk(); $this->textChains->removeAChunk("[warnings-2015-8-9]"); $this->assertEquals(implode("\n", ["[notice-2015-8-10]" => "notice sadkaslkda kdalsdj kjdkjn kjhf hiqowjd", "[dangerous-2015-8-11]" => "dangerous this message is pretty much dangerous for u", "[warnings-2015-8-14]" => "hasan agha gilak"]), $this->textChains->getFile()->content()); }