PHP is a widely used server based scripting language. To learn more please visit http://php.net/

learn more… | top users | synonyms

5
votes
3answers
361 views

PHPUnit Selenium2TestCase BadMethodCallException

I have installed selenium-server-standalone-2.33.0.jar, phpUnit, selenium extension for phpUnit. This test runs ok: $this->url('/'); $this->assertEquals('my title',$this->title()); But ...
4
votes
1answer
135 views

“Each PHP statement must be on a line by itself” Sonarqube pattern error

I'm analyzing a PHP code using Sonarqube, and I've noticed that in almost all files I have this error: "Each PHP statement must be on a line by itself" (DisallowMultipleStatementsSameLine) But when ...
3
votes
2answers
298 views

Is there a way to copy a bug submitted in one mantis bug tracker instance to another?

Our problem is development has multiple mantis bug tracking databases that contain multiple projects for multiple products. From a QA perspective we would like to submit a bug only once in our version ...
3
votes
1answer
645 views

Is there any automation tool for Symfony 2 framework in PHP

Is there any automation tool for Symfony 2 framework in PHP? If so, please suggest me some sites that help me study the tool.
2
votes
2answers
117 views

How to verify no /tr /td rows exist in a table?

I am verifying text using these Xpaths, $I->CanSeeElement("//tbody[contains(tr/td/div/table/tbody/tr/td[1]/text(),$this->Secondarycustomer)]"); $I->CanSeeElement("//tbody[contains(...
2
votes
3answers
107 views

Testability analysis for PHP

Is there any tool that reports on the testability of a PHP codebase? I'm familiarised with what makes the code unit-testable, but I need a way to visualize it so I can easily find which classes can ...
2
votes
3answers
80 views

Which approach should be used for late tests in large projects?

I'm working in a very huge PHP project, but for many reasons the whole project was never tested until now. FYI, the project consists in a lightweight enterprise PHP framework based on Laravel. My ...
2
votes
0answers
48 views

Response for a class (RFC) metric tools for PHP

Is there any tools to calculate Response for a class (RFC) metric for PHP? Both PhpMetrics and PHP Depend don't support it. Thanks.
1
vote
1answer
60 views

How to setup Behat for Magento on Mac with MAMP?

We have a Magento shop and want BDD-tests for our system - locally and later on server side. How can I setup an Behat environment on my mac with MAMP?
1
vote
1answer
53 views

Why does behat call my context class twice?

When I want run my behat test like in this tutorial, I get an error message: ➜ test.dev bin/behat --suite=system PHP Fatal error: Cannot redeclare class SystemContext in /Applications/MAMP/htdocs/...
1
vote
1answer
129 views

Decoupling Unit Tests

I'm trying to learn how to write unit tests the 'proper' way and only test a specific component. (Using http://blog.stevensanderson.com/2009/08/24/writing-great-unit-tests-best-and-worst-practises/ ...
1
vote
1answer
191 views

WebDriver tests run on mac, but on windows the PHP session cannot be deleted, therefore cannot get past login screen

We have a CakePHP application and our WebDriver tests run fine on mac. We have moved a copy of the app and the tests to a windows machine so tests can also be developed there. This is so we are able ...
1
vote
1answer
21 views

My Application is in Php, Using XAMPP SQL [closed]

SQL have one field i.e. Date My application's UI have three drop down Day Month Year I inserted its value using CONCAT $c3date= @trim(stripslashes($_POST['c3year']. '-' . $_POST['c3month'] . '-...
0
votes
2answers
278 views

Automation Testing with Ranorex [closed]

I am new to automation testing. I am testing my web application (php) using ranorex automation tool. Whenever I record my test case, it is recording perfectly but when I play my test case it stops(...
0
votes
1answer
194 views

Selenium and PHP

As I read on the net, Selenium tests should be written in the language of the App if this is possible. Our intranet-application is written in PHP. I was able to get Selenium working with PHPUnit but ...
0
votes
1answer
28 views

How to read data from excel sheet using Codeception for Acceptance test

I am creating a framework to test a website. For that, I am using codeception framework and writing acceptance test. But I want to read the data or values (lets say for login and password) from an ...
0
votes
1answer
819 views

Selenium: Best way to capture unexpected error?

I know how to check values and create tests and do the error handling if something fails, but what I din't found anywhere was the following: A test case tests specific things. But what when ...