November 01 2013

PHPUnit Selenium get url parameter

Tagged Under : ,

PHPUnit
Just now I wrote PHPUnit test case to try get the url parameter with Selenium. In PHP use $_GET function, you can get all the URL parameter. But it doesn’t work in PHPUnit with Selenium.

To solve it was simple, used “$this->getLocation()” function to get current url and then used PHP “parse_url()” and “parse_str()” to get the parameter.

February 01 2013

Yii PHPUnit CLI has stopped working

Tagged Under : ,

PHPUnit
Few day ago I install PHPUnit3.7 on my PC. and I follow phpunit.de instruction install on my PC.

So far everything working properly. But when I try run it on Yii, it pop out an alert message “CLI has stopped working”.