1. Почему-то он запускает тесты 2 раза. Т.е. 2 раза открывает браузер и прогоняет тест. (хотя модульные тесты прогоняет один раз) В консоле выглядит так:
Код: Выделить всё
D:\ZendServer\Apache2\htdocs\test\protected\tests>phpunit functional\DirectTest.php
PHPUnit 3.7.1 by Sebastian Bergmann.
Configuration read from D:\ZendServer\Apache2\htdocs\test\protected\tests\phpunit.xml
..
Time: 35 seconds, Memory: 3.00Mb
OK (2 tests, 22 assertions)
Код: Выделить всё
2) DirectTest::testCompany
Argument 5 passed to PHPUnit_Framework_Error::__construct() must be an instance of Exception, array given, called in D:\ZendServer\ZendServer\bin\PEAR\PHPUnit\Extensions\SeleniumTestCase.php on line 1152 and defined
Мож кто встречался с такими проблемами?
У меня:
Windows 7
PHP 5.4.0
Selenum Server 2.25.0
PHPUnit 3.7.1
Testing_Selenium 0.4.3
Сервер запускаю так:
Код: Выделить всё
java -jar selenium-server-standalone-2.25.0.jar -singlewindow -firefoxProfileTemplate D:\ZendServer\Apache2\htdocs\test\firefoxProfile