/** * Test getValidSubprojects returns NULL when there are no subprojects in DB * * @covers Candidate::getValidSubprojects * @return void */ public function testGetValidSubprojectsReturnsNull() { $subprojects = array(); $this->_setUpTestDoublesForSelectCandidate(); $this->_dbMock->expects($this->at(2))->method('pselect')->willReturn($subprojects); $this->_candidate->select(969664); $this->assertNull($this->_candidate->getValidSubprojects()); }