public function testClearFiltersAndApplyOthers() { $project = new ProjectsModel(); $project->readProjectsFromCsvFile("data/data.csv"); $project->filterByProperty("Yorkshire LL"); $project->filterByProperty(2014); $project->clearFilters(); $this->assertEquals($project->getAllProjects(), $project->getFilteredProjects()); $project->filterByLandlord("Housing Leeds"); $this->assertEquals(array($this->createProject("Housing Leeds", "Yorkshire LL", 3, 2013, 221, 235), $this->createProject("Housing Leeds", "Yorkshire LL", 2, 2014, 206), $this->createProject("Housing Leeds", "Yorkshire LL", 3, 2012, 238, 240), $this->createProject("Housing Leeds", "Yorkshire LL", 1, 2013, 195, 214), $this->createProject("Housing Leeds", "Yorkshire LL", 3, 2014, 215), $this->createProject("Housing Leeds", "Yorkshire LL", 2, 2012, 226, 231), $this->createProject("Housing Leeds", "Yorkshire LL", 1, 2014, 231), $this->createProject("Housing Leeds", "Yorkshire LL", 4, 2013, 226), $this->createProject("Housing Leeds", "Yorkshire LL", 2, 2013, 198, 214), $this->createProject("Housing Leeds", "Yorkshire LL", 4, 2014, 235), $this->createProject("Housing Leeds", "Yorkshire LL", 4, 2012, 181, 197), $this->createProject("Housing Leeds", "Yorkshire LL", 1, 2012, 201, 209)), $project->getFilteredProjects()); }