Answer the question
In order to leave comments, you need to log in
How to solve problems with running tests (PHPUnit, Selenium, PHPStrom)?
Installed PEAR and PHPUnit, set preferences to PHPStorm. When running minimally simple tests, it gives an error
"C:\Program Files (x86)\php\php.exe" Z:\home\192.168\ib\Test\First.php
PHP Fatal error: Class 'PHPUnit_Extensions_Selenium2TestCase' not found in Z:\home\192.168\ib\Test\First.php on line 4
Fatal error: Class 'PHPUnit_Extensions_Selenium2TestCase' not found in Z:\home\192.168\ib\Test\First.php on line 4
Process finished with exit code 255
<?php
class WebTest extends PHPUnit_Extensions_Selenium2TestCase
{
protected function setUp()
{
$this->setBrowser('firefox');
$this->setBrowserUrl('http://www.example.com/');
}
public function testTitle()
{
$this->url('http://www.example.com/');
$this->assertEquals('Example WWW Page', $this->title());
}
}
?>
Answer the question
In order to leave comments, you need to log in
Because it is not necessary to call the file directly, but through phpunit test.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question