Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit e8ebc12

Browse files
committed
Improve code-coverage settings
1 parent f6998eb commit e8ebc12

File tree

8 files changed

+18
-5
lines changed

8 files changed

+18
-5
lines changed

lib/Firefox/FirefoxDriver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
namespace Facebook\WebDriver\Firefox;
1717

18+
/**
19+
* @codeCoverageIgnore
20+
*/
1821
class FirefoxDriver
1922
{
2023
const PROFILE = 'firefox_profile';

lib/Firefox/FirefoxPreferences.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
/**
1919
* Constants of common Firefox profile preferences (about:config values).
2020
* @see http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries
21+
*
22+
* @codeCoverageIgnore
2123
*/
2224
class FirefoxPreferences
2325
{

lib/Remote/DriverCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* This list of command defined in the WebDriver json wire protocol.
20+
*
21+
* @codeCoverageIgnore
2022
*/
2123
class DriverCommand
2224
{

lib/Remote/WebDriverBrowserType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
namespace Facebook\WebDriver\Remote;
1717

1818
/**
19-
* All the browsers supported by selenium
19+
* All the browsers supported by selenium.
20+
*
21+
* @codeCoverageIgnore
2022
*/
2123
class WebDriverBrowserType
2224
{

lib/Remote/WebDriverCapabilityType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* WebDriverCapabilityType contains all constants defined in the WebDriver Wire Protocol.
20+
*
21+
* @codeCoverageIgnore
2022
*/
2123
class WebDriverCapabilityType
2224
{

lib/WebDriverPlatform.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* The platforms supported by WebDriver.
20+
*
21+
* @codeCoverageIgnore
2022
*/
2123
class WebDriverPlatform
2224
{

tests/functional/RemoteWebDriverTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ public function testShouldGetCurrentUrl()
4545
{
4646
$this->driver->get($this->getTestPageUrl('index.html'));
4747

48-
$this->assertContains(
49-
'/index.html',
50-
$this->driver->getCurrentURL()
51-
);
48+
$this->assertStringEndsWith('/index.html', $this->driver->getCurrentURL());
5249
}
5350

5451
/**
@@ -173,6 +170,7 @@ function(){document.getElementById("id_test").innerHTML = "Text changed by scrip
173170

174171
/**
175172
* @covers ::executeAsyncScript
173+
* @covers Facebook\WebDriver\WebDriverTimeouts::setScriptTimeout
176174
*/
177175
public function testShouldExecuteAsyncScriptAndWaitUntilItIsFinished()
178176
{

tests/functional/WebDriverTimeoutsTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function testShouldFailGettingDelayedElementWithoutWait()
3636

3737
/**
3838
* @covers ::implicitlyWait
39+
* @covers ::__construct
3940
*/
4041
public function testShouldGetDelayedElementWithImplicitWait()
4142
{
@@ -49,6 +50,7 @@ public function testShouldGetDelayedElementWithImplicitWait()
4950

5051
/**
5152
* @covers ::pageLoadTimeout
53+
* @covers ::__construct
5254
*/
5355
public function testShouldFailIfPageIsLoadingLongerThanPageLoadTimeout()
5456
{

0 commit comments

Comments
 (0)