At work I've been tasked with unit testing our Javascript code. I settled upon the Jasmine unit testing framework and began to learn how to use it when I was informed that we were now inline our Javascript code within PHP and not even using Javascript files any longer.
Can Jasmine work around this? Is there another framework that could? Should I be using a PHP unit test and a Javascript unit test? What would be my best approach?
Some example code from a fairly basic page to give you an idea:
http://pastebin.com/QaR8zUh1 <---submit
any sort of insight would be greatly appreciated