The present invention discloses a device (10) and method for ophthalmic testing. The device includes a means for projecting (12) a light pattern inside a human eye (E). An image capturing means (16) captures an image of the pattern projected inside a human eye (E). An image processing means (18) compares the original light pattern and the projected light pattern captured within human eye (E). The image processing means (18) is adapted to identify presence of any deformations in said projected light pattern captured within the eye (E). A topology creation means (20) reconstructs the inner topology (22) of the human eye (E) based on said deformations identified by the image processing means (18). The device (10) may further determine the defects in the structure and operation of the eye (E) based on the reconstructed inner topology of eye (22).