I'm trying to set up Cucumber to test a PHP-based web app. The app has a lot of dynamic JavaScript-based functionality. From my Googling, it appears that this means I should go with Celerity/Culerity or Capybara for my web-browsing gem. However, I can't seem to find any good examples of how to test a non-Rails app with either of those systems. All of their documentation assumes I'm using a Rails or Rack app.
Long story short: Am I barking up the wrong tree? Are either of these practical to use without Rails? If so, can you point me to some resources and/or examples for how to do it?