/** * Test getFirstVisit returns first visit's label * * @covers Candidate::getFirstVisit * @return void */ public function testGetFirstVisitReturnsFirstVisitLabel() { $this->_setUpTestDoublesForSelectCandidate(); $this->_dbMock->expects($this->at(2))->method('pselectOne')->willReturn('V01'); $this->_candidate->select(969664); $this->assertEquals('V01', $this->_candidate->getFirstVisit()); }