To prove him (peirazōn auton). Present active participle of peirazō, testing him, not here in bad sense of tempting as so often (Mat 4:1).
What he would do (ti ēmellen poiein). Indirect question with change of tense to imperfect. As in Joh 2:25 so here John explains why Jesus put the question to Philip.