public function testScopeCleanOk() { $listFilter = new App_ListFilter(); $listFilter->addToScope('scopeVar1', 'scopeValue1'); $listFilter->addToScope('scopeVar2', 'scopeValue2'); $listFilter->addToScope('scopeVar3', 'scopeValue3'); $listFilter->addToScope('scopeVar4', 'scopeValue4'); $listFilter->addToScope('scopeVar5', 'scopeValue5'); $this->assertEquals('scopeValue1', $listFilter->getFromScope('scopeVar1')); $this->assertEquals('scopeValue2', $listFilter->getFromScope('scopeVar2')); $this->assertEquals('scopeValue3', $listFilter->getFromScope('scopeVar3')); $this->assertEquals('scopeValue4', $listFilter->getFromScope('scopeVar4')); $this->assertEquals('scopeValue5', $listFilter->getFromScope('scopeVar5')); $listFilter->clearScope(); $this->assertNull($listFilter->getFromScope('scopeVar1')); $this->assertNull($listFilter->getFromScope('scopeVar2')); $this->assertNull($listFilter->getFromScope('scopeVar3')); $this->assertNull($listFilter->getFromScope('scopeVar4')); $this->assertNull($listFilter->getFromScope('scopeVar5')); }