Phosphate can be determined through a standard blood test. As for urinalysis - the most basic tests are performed through a microscope, and these would normally be looking for
red blood cells (presence of which may indicate inflammation, injury or kidney disease)
white blood cells (high levels of which may indicate infection or inflammation in the urinary tract)
epithelial cells (it's normal to find a low level of epithelial cells from the bladder. It's less normal to find them from the kidneys. Infection, inflammation and malignant growths increase the number of cells. The location of these cells can tell us a lot about what's going wrong - so for example, if there's a bladder infection, there'll be an increase in the type of cells found there)
Bacteria (fairly self explanatory!)
Casts
(this link explains casts pretty well)
We also do a 'dipstick' test, which is basically a strip of specially prepared paper. They are coated in chemicals which react with the urine. We most commonly use these to test for glucose, protein, urine PH, blood, bilirubin and nitrate.
This site is a superb resource if you're interested in laboratory testing. We actually use it at work occasionally if we get a test we've never seen before.