Pillowcase for sofa or bed