Skip to content

Commit 3f4aa23

Browse files
committed
PHPDoc comment doesn't contain all necessary @throws tag(s)
1 parent 01820c6 commit 3f4aa23

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

lib/Firefox/FirefoxProfile.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function addExtension($extension) {
4545
* @param string $key
4646
* @param string|bool|int $value
4747
* @return FirefoxProfile
48+
* @throws WebDriverException
4849
*/
4950
public function setPreference($key, $value) {
5051
if (is_string($value)) {

lib/Remote/DesiredCapabilities.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function isJavascriptEnabled() {
115115
* This is a htmlUnit-only option.
116116
*
117117
* @param bool $enabled
118+
* @throws Exception
118119
* @return DesiredCapabilities
119120
* @see https://code.google.com/p/selenium/wiki/DesiredCapabilities#Read-write_capabilities
120121
*/

lib/WebDriverSelect.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public function getAllSelectedOptions() {
6868
}
6969

7070
/**
71+
* @throws NoSuchElementException
72+
*
7173
* @return WebDriverElement The first selected option in this select tag (or
7274
* the currently selected option in a normal select)
7375
*/
@@ -84,6 +86,8 @@ public function getFirstSelectedOption() {
8486
/**
8587
* Deselect all options in multiple select tag.
8688
*
89+
* @throws UnsupportedOperationException
90+
*
8791
* @return void
8892
*/
8993
public function deselectAll() {
@@ -104,6 +108,9 @@ public function deselectAll() {
104108
* Select the option at the given index.
105109
*
106110
* @param int $index The index of the option. (0-based)
111+
*
112+
* @throws NoSuchElementException
113+
*
107114
* @return void
108115
*/
109116
public function selectByIndex($index) {
@@ -133,6 +140,9 @@ public function selectByIndex($index) {
133140
* <option value="foo">Bar</option>;
134141
*
135142
* @param string $value The value to match against.
143+
*
144+
* @throws NoSuchElementException
145+
*
136146
* @return void
137147
*/
138148
public function selectByValue($value) {
@@ -164,6 +174,9 @@ public function selectByValue($value) {
164174
* <option value="foo">Bar</option>;
165175
*
166176
* @param string $text The visible text to match against.
177+
*
178+
* @throws NoSuchElementException
179+
*
167180
* @return void
168181
*/
169182
public function selectByVisibleText($text) {

0 commit comments

Comments
 (0)