File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1414 "homepage" : " https://codeception.com/" ,
1515 "require" : {
1616 "php" : " ^8.0" ,
17- "phpunit/phpunit" : " ^9.5 | ^10.0"
17+ "guzzlehttp/psr7" : " ^2.0" ,
18+ "symfony/css-selector" : " >=4.4.24 <7.0"
19+ },
20+ "require-dev" : {
21+ "phpunit/phpunit" : " ^9.5 | ^10.0" ,
22+ "php-webdriver/webdriver" : " ^1.12"
1823 },
1924 "conflict" : {
2025 "codeception/codeception" : " <5.0.0-alpha3"
Original file line number Diff line number Diff line change 44
55use Codeception \Util \Locator ;
66use Facebook \WebDriver \WebDriverBy ;
7+ use PHPUnit \Framework \TestCase ;
78
8- class LocatorTest extends \ PHPUnit \ Framework \ TestCase
9+ class LocatorTest extends TestCase
910{
1011 public function testCombine ()
1112 {
@@ -88,8 +89,10 @@ public function testHumanReadableString()
8889 {
8990 $ this ->assertSame ("'string selector' " , Locator::humanReadableString ("string selector " ));
9091 $ this ->assertSame ("css '.something' " , Locator::humanReadableString (['css ' => '.something ' ]));
91- //WebDriver is no longer a dependency of core, so this can't be testedI
92- //$this->assertSame("css selector '.something'", Locator::humanReadableString(WebDriverBy::cssSelector('.something')) );
92+ $ this ->assertSame (
93+ "css selector '.something' " ,
94+ Locator::humanReadableString (WebDriverBy::cssSelector ('.something ' ))
95+ );
9396 }
9497
9598 public function testLocatingElementPosition ()
Original file line number Diff line number Diff line change 44
55namespace Codeception \Util ;
66
7- class UriTest extends \Codeception \Test \Unit
7+ use PHPUnit \Framework \TestCase ;
8+
9+ class UriTest extends TestCase
810{
911 public function testUrlMerge ()
1012 {
You can’t perform that action at this time.
0 commit comments