PHPUnit / testing Testing AJAX pages with PHPUnit September 19, 2011 vladimirLeave a comment When you test pages that work with AJAX using PHPUnit, the situation appears that the function assertTextPresent returns false because the page is not reloaded and the loading might be slow. The solution is to use: waitForTextPresent ( pattern ) Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Like Loading... Related