public function testRetrieveCandidate() { $candidate = self::createTestCandidate(); $retrieved_candidate = Candidate::retrieve($candidate->id); foreach (self::$test_candidate as $key => $value) { $this->assertSame($retrieved_candidate->{$key}, $value); } }