First of all there is a useful article about integration between PHP and TeamCity in the documentation to TeamCity 8 called Getting started with PHP. It is worth to read it.
Continue reading
Tag Archives: continuous integration
How to integrate TeamCity with remote Mercurial through SSH
I have a couple of Merurial repos on BitBucket. And I have a CI TeamCity server on Windows. I want to integrate my local TeamCity with remote repos on BitBucket through SSH.
Ok, let’s start. As a precondition we should have PuTTY installed and added to PATH on TeamCity Windows server and a generated public/private SSH keys pair.
Continue reading
How to test in different browsers with PHPUnit-Selenium
PHPUnit v 3.7 documetation says that we can run same test in different browsers. We have to create a descendant class from PHPUnit_Extensions_SeleniumTestCase with a special variable called $browsers.
Continue reading
How to create mock for a method with reference parameters
While testing PHP we need sometimes to create a mock for a method with reference parameters. I use returnCallback() from PHPUnit framework to to this. returnCallback() will call a function that imitates functionality of the original method. The original method can be either public or protected.
Continue reading
How to run JSLint in command line on Windows
I use JSLint for JavaScript code quality control.
How to run JSLint in Windows command line?
Continue reading