Changeset 19411
- Timestamp:
- 06/20/09 13:54:04 (4 years ago)
- Files:
-
- branches/1.2/lib/test/sfTestFunctional.class.php (modified) (3 diffs)
- branches/1.2/lib/test/sfTestFunctionalBase.class.php (modified) (20 diffs)
- branches/1.2/lib/util/sfBrowserBase.class.php (modified) (17 diffs)
- branches/1.3/lib/test/sfTestFunctional.class.php (modified) (3 diffs)
- branches/1.3/lib/test/sfTestFunctionalBase.class.php (modified) (20 diffs)
- branches/1.3/lib/util/sfBrowserBase.class.php (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/test/sfTestFunctional.class.php
r14485 r19411 42 42 * @param mixed $position The position in the action stack (default to the last entry) 43 43 * 44 * @return sfTest Browser The current sfTestBrowserinstance44 * @return sfTestFunctional The current sfTestFunctional instance 45 45 */ 46 46 public function isForwardedTo($moduleName, $actionName, $position = 'last') … … 74 74 * @param boolean $with_layout If have or not layout 75 75 * 76 * @return sfTest Browser The current sfTestBrowserinstance76 * @return sfTestFunctional The current sfTestFunctional instance 77 77 */ 78 78 public function isCached($boolean, $with_layout = false) … … 90 90 * @param boolean $with_layout If have or not layout 91 91 * 92 * @return sfTest Browser The current sfTestBrowserinstance92 * @return sfTestFunctional The current sfTestFunctional instance 93 93 */ 94 94 public function isUriCached($uri, $boolean, $with_layout = false) branches/1.2/lib/test/sfTestFunctionalBase.class.php
r16170 r19411 177 177 * @param bool $changeStack Change the browser history stack? 178 178 * 179 * @return sf Browser179 * @return sfTestFunctionalBase 180 180 */ 181 181 public function get($uri, $parameters = array(), $changeStack = true) … … 192 192 * @param string $code The expected return status code 193 193 * 194 * @return sfTest Browser The current sfTestBrowserinstance194 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 195 195 */ 196 196 public function getAndCheck($module, $action, $url = null, $code = 200) … … 213 213 * @param bool $changeStack Change the browser history stack? 214 214 * 215 * @return sf Browser215 * @return sfTestFunctionalBase 216 216 */ 217 217 public function post($uri, $parameters = array(), $changeStack = true) … … 228 228 * @param bool $changeStack If set to false ActionStack is not changed 229 229 * 230 * @return sfTest Browser The current sfTestBrowserinstance230 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 231 231 */ 232 232 public function call($uri, $method = 'get', $parameters = array(), $changeStack = true) … … 253 253 * @param string $name The checkbox or radiobutton id, name or text 254 254 * 255 * @return sf Browser255 * @return sfTestFunctionalBase 256 256 */ 257 257 public function deselect($name) … … 267 267 * @param string $name The checkbox or radiobutton id, name or text 268 268 * 269 * @return sf Browser269 * @return sfTestFunctionalBase 270 270 */ 271 271 public function select($name) … … 283 283 * @param array $options An array of options 284 284 * 285 * @return sf Browser285 * @return sfTestFunctionalBase 286 286 */ 287 287 public function click($name, $arguments = array(), $options = array()) … … 295 295 * Simulates the browser back button. 296 296 * 297 * @return sfTest Browser The current sfTestBrowserinstance297 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 298 298 */ 299 299 public function back() … … 309 309 * Simulates the browser forward button. 310 310 * 311 * @return sfTest Browser The current sfTestBrowserinstance311 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 312 312 */ 313 313 public function forward() … … 325 325 * @param string $message A message 326 326 * 327 * @return sfTest Browser The current sfTestBrowserinstance327 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 328 328 */ 329 329 public function info($message) … … 341 341 * @param bool $boolean Flag for redirection mode 342 342 * 343 * @return sfTest Browser The current sfTestBrowserinstance343 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 344 344 */ 345 345 public function isRedirected($boolean = true) … … 354 354 * @param string $text Text in the response 355 355 * 356 * @return sfTest Browser The current sfTestBrowserinstance356 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 357 357 */ 358 358 public function check($uri, $text = null) … … 375 375 * @param string Status code to check, default 200 376 376 * 377 * @return sfTest Browser The current sfTestBrowserinstance377 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 378 378 */ 379 379 public function isStatusCode($statusCode = 200) … … 389 389 * @param string Text to check 390 390 * 391 * @return sfTest Browser The current sfTestBrowserinstance391 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 392 392 */ 393 393 public function responseContains($text) … … 404 404 * @param string $value 405 405 * 406 * @return sfTest Browser The current sfTestBrowserinstance406 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 407 407 */ 408 408 public function isRequestParameter($key, $value) … … 419 419 * @param string $value 420 420 * 421 * @return sfTest Browser The current sfTestBrowserinstance421 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 422 422 */ 423 423 public function isResponseHeader($key, $value) … … 433 433 * @param string $culture The user culture 434 434 * 435 * @return sfTest Browser The current sfTestBrowserinstance435 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 436 436 */ 437 437 public function isUserCulture($culture) … … 447 447 * @param string $format The request format 448 448 * 449 * @return sfTest Browser The current sfTestBrowserinstance449 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 450 450 */ 451 451 public function isRequestFormat($format) … … 463 463 * @param array $options Options for the current test 464 464 * 465 * @return sfTest Browser The current sfTestBrowserinstance465 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 466 466 */ 467 467 public function checkResponseElement($selector, $value = true, $options = array()) … … 476 476 * @param string $message Message name 477 477 * 478 * @return sfTest Browser The current sfTestBrowserinstance478 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 479 479 */ 480 480 public function throwsException($class = null, $message = null) branches/1.2/lib/util/sfBrowserBase.class.php
r18669 r19411 83 83 * @param mixed $value The value 84 84 * 85 * @return sfBrowser 85 * @return sfBrowserBase 86 86 */ 87 87 public function setVar($name, $value) … … 116 116 * @param bool $httpOnly If uses only HTTP 117 117 * 118 * @return sfBrowser This sfBrowserinstance118 * @return sfBrowserBase This sfBrowserBase instance 119 119 */ 120 120 public function setCookie($name, $value, $expire = null, $path = '/', $domain = '', $secure = false, $httpOnly = false) … … 136 136 * Removes a cookie by name. 137 137 * 138 * @param string $name The cookie name139 * 140 * @return sfBrowser This sfBrowserinstance138 * @param string $name The cookie name 139 * 140 * @return sfBrowserBase This sfBrowserBase instance 141 141 */ 142 142 public function removeCookie($name) … … 150 150 * Clears all cookies. 151 151 * 152 * @return sfBrowser This sfBrowserinstance152 * @return sfBrowserBase This sfBrowserBase instance 153 153 */ 154 154 public function clearCookies() … … 165 165 * @param string $password The password 166 166 * 167 * @return sfBrowser 167 * @return sfBrowserBase 168 168 */ 169 169 public function setAuth($username, $password) … … 182 182 * @param bool $changeStack Change the browser history stack? 183 183 * 184 * @return sfBrowser 184 * @return sfBrowserBase 185 185 */ 186 186 public function get($uri, $parameters = array(), $changeStack = true) … … 196 196 * @param bool $changeStack Change the browser history stack? 197 197 * 198 * @return sfBrowser 198 * @return sfBrowserBase 199 199 */ 200 200 public function post($uri, $parameters = array(), $changeStack = true) … … 211 211 * @param bool $changeStack Change the browser history stack? 212 212 * 213 * @return sfBrowser 213 * @return sfBrowserBase 214 214 */ 215 215 public function call($uri, $method = 'get', $parameters = array(), $changeStack = true) … … 380 380 * Go back in the browser history stack. 381 381 * 382 * @return sfBrowser 382 * @return sfBrowserBase 383 383 */ 384 384 public function back() … … 396 396 * Go forward in the browser history stack. 397 397 * 398 * @return sfBrowser 398 * @return sfBrowserBase 399 399 */ 400 400 public function forward() … … 412 412 * Reload the current browser. 413 413 * 414 * @return sfBrowser 414 * @return sfBrowserBase 415 415 */ 416 416 public function reload() … … 518 518 * @throws sfException If request was not a redirect 519 519 * 520 * @return sfBrowser 520 * @return sfBrowserBase 521 521 */ 522 522 public function followRedirect() … … 536 536 * @param string $value The field value 537 537 * 538 * @return sfBrowser 538 * @return sfBrowserBase 539 539 */ 540 540 public function setField($name, $value) … … 551 551 * @param string $name The checkbox or radiobutton id, name or text 552 552 * 553 * @return sfBrowser 553 * @return sfBrowserBase 554 554 * 555 555 * @see doSelect() … … 567 567 * @param string $name The checkbox or radiobutton id, name or text 568 568 * 569 * @return sfBrowser 569 * @return sfBrowserBase 570 570 * 571 571 * @see doSelect() … … 635 635 * @param array $options An array of options 636 636 * 637 * @return sfBrowser 637 * @return sfBrowserBase 638 638 * 639 639 * @see doClick() … … 866 866 * Reset browser to original state 867 867 * 868 * @return sfBrowser 868 * @return sfBrowserBase 869 869 */ 870 870 public function restart() branches/1.3/lib/test/sfTestFunctional.class.php
r14485 r19411 42 42 * @param mixed $position The position in the action stack (default to the last entry) 43 43 * 44 * @return sfTest Browser The current sfTestBrowserinstance44 * @return sfTestFunctional The current sfTestFunctional instance 45 45 */ 46 46 public function isForwardedTo($moduleName, $actionName, $position = 'last') … … 74 74 * @param boolean $with_layout If have or not layout 75 75 * 76 * @return sfTest Browser The current sfTestBrowserinstance76 * @return sfTestFunctional The current sfTestFunctional instance 77 77 */ 78 78 public function isCached($boolean, $with_layout = false) … … 90 90 * @param boolean $with_layout If have or not layout 91 91 * 92 * @return sfTest Browser The current sfTestBrowserinstance92 * @return sfTestFunctional The current sfTestFunctional instance 93 93 */ 94 94 public function isUriCached($uri, $boolean, $with_layout = false) branches/1.3/lib/test/sfTestFunctionalBase.class.php
r16170 r19411 177 177 * @param bool $changeStack Change the browser history stack? 178 178 * 179 * @return sf Browser179 * @return sfTestFunctionalBase 180 180 */ 181 181 public function get($uri, $parameters = array(), $changeStack = true) … … 192 192 * @param string $code The expected return status code 193 193 * 194 * @return sfTest Browser The current sfTestBrowserinstance194 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 195 195 */ 196 196 public function getAndCheck($module, $action, $url = null, $code = 200) … … 213 213 * @param bool $changeStack Change the browser history stack? 214 214 * 215 * @return sf Browser215 * @return sfTestFunctionalBase 216 216 */ 217 217 public function post($uri, $parameters = array(), $changeStack = true) … … 228 228 * @param bool $changeStack If set to false ActionStack is not changed 229 229 * 230 * @return sfTest Browser The current sfTestBrowserinstance230 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 231 231 */ 232 232 public function call($uri, $method = 'get', $parameters = array(), $changeStack = true) … … 253 253 * @param string $name The checkbox or radiobutton id, name or text 254 254 * 255 * @return sf Browser255 * @return sfTestFunctionalBase 256 256 */ 257 257 public function deselect($name) … … 267 267 * @param string $name The checkbox or radiobutton id, name or text 268 268 * 269 * @return sf Browser269 * @return sfTestFunctionalBase 270 270 */ 271 271 public function select($name) … … 283 283 * @param array $options An array of options 284 284 * 285 * @return sf Browser285 * @return sfTestFunctionalBase 286 286 */ 287 287 public function click($name, $arguments = array(), $options = array()) … … 295 295 * Simulates the browser back button. 296 296 * 297 * @return sfTest Browser The current sfTestBrowserinstance297 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 298 298 */ 299 299 public function back() … … 309 309 * Simulates the browser forward button. 310 310 * 311 * @return sfTest Browser The current sfTestBrowserinstance311 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 312 312 */ 313 313 public function forward() … … 325 325 * @param string $message A message 326 326 * 327 * @return sfTest Browser The current sfTestBrowserinstance327 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 328 328 */ 329 329 public function info($message) … … 341 341 * @param bool $boolean Flag for redirection mode 342 342 * 343 * @return sfTest Browser The current sfTestBrowserinstance343 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 344 344 */ 345 345 public function isRedirected($boolean = true) … … 354 354 * @param string $text Text in the response 355 355 * 356 * @return sfTest Browser The current sfTestBrowserinstance356 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 357 357 */ 358 358 public function check($uri, $text = null) … … 375 375 * @param string Status code to check, default 200 376 376 * 377 * @return sfTest Browser The current sfTestBrowserinstance377 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 378 378 */ 379 379 public function isStatusCode($statusCode = 200) … … 389 389 * @param string Text to check 390 390 * 391 * @return sfTest Browser The current sfTestBrowserinstance391 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 392 392 */ 393 393 public function responseContains($text) … … 404 404 * @param string $value 405 405 * 406 * @return sfTest Browser The current sfTestBrowserinstance406 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 407 407 */ 408 408 public function isRequestParameter($key, $value) … … 419 419 * @param string $value 420 420 * 421 * @return sfTest Browser The current sfTestBrowserinstance421 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 422 422 */ 423 423 public function isResponseHeader($key, $value) … … 433 433 * @param string $culture The user culture 434 434 * 435 * @return sfTest Browser The current sfTestBrowserinstance435 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 436 436 */ 437 437 public function isUserCulture($culture) … … 447 447 * @param string $format The request format 448 448 * 449 * @return sfTest Browser The current sfTestBrowserinstance449 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 450 450 */ 451 451 public function isRequestFormat($format) … … 463 463 * @param array $options Options for the current test 464 464 * 465 * @return sfTest Browser The current sfTestBrowserinstance465 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 466 466 */ 467 467 public function checkResponseElement($selector, $value = true, $options = array()) … … 476 476 * @param string $message Message name 477 477 * 478 * @return sfTest Browser The current sfTestBrowserinstance478 * @return sfTestFunctionalBase The current sfTestFunctionalBase instance 479 479 */ 480 480 public function throwsException($class = null, $message = null) branches/1.3/lib/util/sfBrowserBase.class.php
r18669 r19411 83 83 * @param mixed $value The value 84 84 * 85 * @return sfBrowser 85 * @return sfBrowserBase 86 86 */ 87 87 public function setVar($name, $value) … … 116 116 * @param bool $httpOnly If uses only HTTP 117 117 * 118 * @return sfBrowser This sfBrowserinstance118 * @return sfBrowserBase This sfBrowserBase instance 119 119 */ 120 120 public function setCookie($name, $value, $expire = null, $path = '/', $domain = '', $secure = false, $httpOnly = false) … … 136 136 * Removes a cookie by name. 137 137 * 138 * @param string $name The cookie name139 * 140 * @return sfBrowser This sfBrowserinstance138 * @param string $name The cookie name 139 * 140 * @return sfBrowserBase This sfBrowserBase instance 141 141 */ 142 142 public function removeCookie($name) … … 150 150 * Clears all cookies. 151 151 * 152 * @return sfBrowser This sfBrowserinstance152 * @return sfBrowserBase This sfBrowserBase instance 153 153 */ 154 154 public function clearCookies() … … 165 165 * @param string $password The password 166 166 * 167 * @return sfBrowser 167 * @return sfBrowserBase 168 168 */ 169 169 public function setAuth($username, $password) … … 182 182 * @param bool $changeStack Change the browser history stack? 183 183 * 184 * @return sfBrowser 184 * @return sfBrowserBase 185 185 */ 186 186 public function get($uri, $parameters = array(), $changeStack = true) … … 196 196 * @param bool $changeStack Change the browser history stack? 197 197 * 198 * @return sfBrowser 198 * @return sfBrowserBase 199 199 */ 200 200 public function post($uri, $parameters = array(), $changeStack = true) … … 211 211 * @param bool $changeStack Change the browser history stack? 212 212 * 213 * @return sfBrowser 213 * @return sfBrowserBase 214 214 */ 215 215 public function call($uri, $method = 'get', $parameters = array(), $changeStack = true) … … 380 380 * Go back in the browser history stack. 381 381 * 382 * @return sfBrowser 382 * @return sfBrowserBase 383 383 */ 384 384 public function back() … … 396 396 * Go forward in the browser history stack. 397 397 * 398 * @return sfBrowser 398 * @return sfBrowserBase 399 399 */ 400 400 public function forward() … … 412 412 * Reload the current browser. 413 413 * 414 * @return sfBrowser 414 * @return sfBrowserBase 415 415 */ 416 416 public function reload() … … 518 518 * @throws sfException If request was not a redirect 519 519 * 520 * @return sfBrowser 520 * @return sfBrowserBase 521 521 */ 522 522 public function followRedirect() … … 536 536 * @param string $value The field value 537 537 * 538 * @return sfBrowser 538 * @return sfBrowserBase 539 539 */ 540 540 public function setField($name, $value) … … 551 551 * @param string $name The checkbox or radiobutton id, name or text 552 552 * 553 * @return sfBrowser 553 * @return sfBrowserBase 554 554 * 555 555 * @see doSelect() … … 567 567 * @param string $name The checkbox or radiobutton id, name or text 568 568 * 569 * @return sfBrowser 569 * @return sfBrowserBase 570 570 * 571 571 * @see doSelect() … … 635 635 * @param array $options An array of options 636 636 * 637 * @return sfBrowser 637 * @return sfBrowserBase 638 638 * 639 639 * @see doClick() … … 866 866 * Reset browser to original state 867 867 * 868 * @return sfBrowser 868 * @return sfBrowserBase 869 869 */ 870 870 public function restart()