How can I check if a line is there only once on a site? I am using WebTestCase from simpletest.
If you have a database of all the page names and you know the string you are looking for, you can go through the database and read each page, and then search for the string in each page.