public function testRemoveInitialisesDenyArray() { $list = new CurrencyList(); $this->assertTrue($list->isAllowed('USD')); $this->assertTrue($list->isAllowed('GBP')); $this->assertSame($list, $list->remove('GBP')); $this->assertTrue($list->isAllowed('USD')); $this->assertFalse($list->isAllowed('GBP')); $expect = count($list->getKnown()) - 1; $this->assertCount($expect, $list->getAllow()); }