cvs: pear /Testing_Selenium/tests Bug8891.php Bug8893.php Bug9189.php SeleniumTest.php /Testing_Selenium/tests/html bug9189.html

From: Date: Tue, 31 Oct 2006 00:28:45 +0000
Subject: cvs: pear /Testing_Selenium/tests Bug8891.php Bug8893.php Bug9189.php SeleniumTest.php /Testing_Selenium/tests/html bug9189.html
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42906@lists.php.net to get a copy of this message
shin Tue Oct 31 00:28:45 2006 UTC Added files: /pear/Testing_Selenium/tests Bug9189.php /pear/Testing_Selenium/tests/html bug9189.html Modified files: /pear/Testing_Selenium/tests Bug8891.php Bug8893.php SeleniumTest.php Log: Added testcase for Bug 9189. Renamed PHPUnit, PHPUnit2_foobar to PHPUnit_foo_bar http://cvs.php.net/viewvc.cgi/pear/Testing_Selenium/tests/Bug8891.php?r1=1.2&r2=1.3&diff_format=u Index: pear/Testing_Selenium/tests/Bug8891.php diff -u pear/Testing_Selenium/tests/Bug8891.php:1.2 pear/Testing_Selenium/tests/Bug8891.php:1.3 --- pear/Testing_Selenium/tests/Bug8891.php:1.2 Sat Oct 14 17:44:33 2006 +++ pear/Testing_Selenium/tests/Bug8891.php Tue Oct 31 00:28:45 2006 @@ -1,8 +1,8 @@ <?php require_once 'Testing/Selenium.php'; -require_once 'PHPUnit2/Framework/TestCase.php'; +require_once 'PHPUnit/Framework/TestCase.php'; -class Bug8891 extends PHPUnit2_Framework_TestCase +class Bug8891 extends PHPUnit_Framework_TestCase { private $selenium; @@ -33,7 +33,6 @@ } } // }}} - // {{{ testOpen public function test8893() { try { @@ -54,6 +53,5 @@ echo $e; } } - // }}} } ?> http://cvs.php.net/viewvc.cgi/pear/Testing_Selenium/tests/Bug8893.php?r1=1.2&r2=1.3&diff_format=u Index: pear/Testing_Selenium/tests/Bug8893.php diff -u pear/Testing_Selenium/tests/Bug8893.php:1.2 pear/Testing_Selenium/tests/Bug8893.php:1.3 --- pear/Testing_Selenium/tests/Bug8893.php:1.2 Sat Oct 14 17:44:33 2006 +++ pear/Testing_Selenium/tests/Bug8893.php Tue Oct 31 00:28:45 2006 @@ -1,8 +1,8 @@ <?php require_once 'Testing/Selenium.php'; -require_once 'PHPUnit2/Framework/TestCase.php'; +require_once 'PHPUnit/Framework/TestCase.php'; -class Bug8893 extends PHPUnit2_Framework_TestCase +class Bug8893 extends PHPUnit_Framework_TestCase { private $selenium; @@ -33,7 +33,6 @@ } } // }}} - // {{{ testOpen public function test8893() { try { @@ -44,6 +43,5 @@ echo $e; } } - // }}} } ?> http://cvs.php.net/viewvc.cgi/pear/Testing_Selenium/tests/SeleniumTest.php?r1=1.4&r2=1.5&diff_format=u Index: pear/Testing_Selenium/tests/SeleniumTest.php diff -u pear/Testing_Selenium/tests/SeleniumTest.php:1.4 pear/Testing_Selenium/tests/SeleniumTest.php:1.5 --- pear/Testing_Selenium/tests/SeleniumTest.php:1.4 Sat Oct 14 17:44:33 2006 +++ pear/Testing_Selenium/tests/SeleniumTest.php Tue Oct 31 00:28:45 2006 @@ -1,12 +1,12 @@ <?php -// To run this test, You need to install PHPUnit2 and Selenium RC Server +// To run this test, You need to install PHPUnit and Selenium RC Server // Selenium RC Server is available the following website. // http://openqa.org/selenium-rc/ //error_reporting(E_ALL|E_STRICT); require_once 'Testing/Selenium.php'; -require_once 'PHPUnit2/Framework/TestCase.php'; +require_once 'PHPUnit/Framework/TestCase.php'; -class SeleniumTest extends PHPUnit2_Framework_TestCase +class SeleniumTest extends PHPUnit_Framework_TestCase { private $selenium; http://cvs.php.net/viewvc.cgi/pear/Testing_Selenium/tests/Bug9189.php?view=markup&rev=1.1 Index: pear/Testing_Selenium/tests/Bug9189.php +++ pear/Testing_Selenium/tests/Bug9189.php <?php //require_once 'Testing/Selenium.php'; require_once '../Selenium.php'; require_once 'PHPUnit/Framework/TestCase.php'; class Bug9189 extends PHPUnit_Framework_TestCase { private $selenium; public function __construct($name) { parent::__construct($name); } public function test9189() { try { $selenium = new Testing_Selenium("*firefox", "http://localhost/"); $selenium->start(); $selenium->open("http://localhost/shin/html/bug9189.html"); $selenium->select('parent_cat', 'Test Category 001'); $selenium->stop(); } catch (Selenium_Exception $e) { $this->selenium->stop(); echo $e; } } } ?> http://cvs.php.net/viewvc.cgi/pear/Testing_Selenium/tests/html/bug9189.html?view=markup&rev=1.1 Index: pear/Testing_Selenium/tests/html/bug9189.html +++ pear/Testing_Selenium/tests/html/bug9189.html <select id="parent_cat" name="serendipity[cat][parent_cat]"> <option value="0" selected="selected">[ No Category ]</option> <option value="1"> Test Category 001</option> <option value="3">b</option> <option value="2">Test Category 002</option> </select>

« previous php.pear.cvs (#42906) next »