At work, I was assigned unit testing of our Javascript code. I settled on the modular modular structure of Jasmine and began to learn how to use it when I was informed that we have now embedded our Javascript code in PHP and do not even use Javascript files anymore.
Can Jasmine get around this? Is there any other framework? Should I use PHP unit test and Javascript unit test? What will be my best approach?
Sample code from a fairly simple page to give you an idea:
http://pastebin.com/K3YP33id
http://pastebin.com/QaR8zUh1 <--- submit
any kind of insight will be appreciated
Goose source
share