assertEquals(['item'], $storage->getBlacklist()); } public function testAppendToBlacklist() { $storage = new Storage(['item1']); $storage->appendToBlacklist(['item2']); $this->assertEquals(['item1', 'item2'], $storage->getBlacklist()); $storage = new Storage(['item1']); $storage->appendToBlacklist('item2'); $this->assertEquals(['item1', 'item2'], $storage->getBlacklist()); } public function testSetBlacklist() { $storage = new Storage(['item1']); $storage->setBlacklist(['item2']); $this->assertEquals(['item2'], $storage->getBlacklist()); } }