Just make sure you prime the pvc before you glue it!! Purple primer then glue. If you don't it can fail
Primer - be it purple or the clear one I think they have now. Also please sand. Treat it like you would when installing sprinklers. I sort of go this route after measuring of course:
1. Measure, measure again (because I suck at measuring if you couldn't tell)
2. Rough sand pieces that you are connecting - pipe and fitting
3. Loose fit to check measurements from #1 above, if good proceed to 4
4. Use pencil to mark pipe and fitting alignment (more on this below)
5. Apply primer to pipe and fitting
6. Apply glue to pipe and inside fitting
7. Gently place fitting on pipe until they reach stop
8. Turn 1/4
8. Turn back 1/4 to pencil mark from #4 above while applying pressure to hold together
10. Count to 30
11. Clean up if mess
The long and short of it is that you sanded, applied primer, then marked final position. Apply primer, glue to both ends, set, apply pressure as you turn 1/4 one way and back to final alignment. This gets all everything all set and when done right you will feel a bit of heat from glue and primer and pvc doing their magic. Will seal up nicely and you will never have a leak...