@@ -251,6 +251,9 @@ discard block |
||
| 251 | 251 | } |
| 252 | 252 | } |
| 253 | 253 | |
| 254 | + /** |
|
| 255 | + * @param null|string $selector |
|
| 256 | + */ |
|
| 254 | 257 | public function assertElementClickable($selector, $by = WebDriver::BY_ID) |
| 255 | 258 | { |
| 256 | 259 | $this->elementAssertion($selector, $by, Clickable::ASSERTION); |
@@ -268,6 +271,9 @@ discard block |
||
| 268 | 271 | $this->testCaseConfiguration = $class; |
| 269 | 272 | } |
| 270 | 273 | |
| 274 | + /** |
|
| 275 | + * @param string $namespace |
|
| 276 | + */ |
|
| 271 | 277 | public static function addBaseNamespace($namespace) |
| 272 | 278 | { |
| 273 | 279 | if (!in_array($namespace, self::$baseNamespaces)) { |
@@ -275,6 +281,9 @@ discard block |
||
| 275 | 281 | } |
| 276 | 282 | } |
| 277 | 283 | |
| 284 | + /** |
|
| 285 | + * @param string $prefix |
|
| 286 | + */ |
|
| 278 | 287 | public static function resolveClass( $class, $prefix = null) |
| 279 | 288 | { |
| 280 | 289 | $origClass = $class; |
@@ -306,6 +315,9 @@ discard block |
||
| 306 | 315 | |
| 307 | 316 | } |
| 308 | 317 | |
| 318 | + /** |
|
| 319 | + * @return string |
|
| 320 | + */ |
|
| 309 | 321 | protected function normalizeClassRequest($class) |
| 310 | 322 | { |
| 311 | 323 | return str_replace('/', '\\', $class); |
@@ -398,7 +410,7 @@ discard block |
||
| 398 | 410 | * |
| 399 | 411 | * Options: 1s (1 second), 1ms (1 millisecond), 1us (1 microsecond), 1ns (1 nanosecond) |
| 400 | 412 | * |
| 401 | - * @param $time |
|
| 413 | + * @param string $time |
|
| 402 | 414 | */ |
| 403 | 415 | |
| 404 | 416 | public function sleep($time) |
@@ -600,7 +612,7 @@ discard block |
||
| 600 | 612 | } |
| 601 | 613 | |
| 602 | 614 | /** |
| 603 | - * @param $xpath |
|
| 615 | + * @param string $xpath |
|
| 604 | 616 | * @return \Facebook\WebDriver\Remote\RemoteWebElement |
| 605 | 617 | */ |
| 606 | 618 | |
@@ -629,6 +641,12 @@ discard block |
||
| 629 | 641 | return $this->webdriver->byCssSelector($selector); |
| 630 | 642 | } |
| 631 | 643 | |
| 644 | + /** |
|
| 645 | + * @param string $xpathTemplate |
|
| 646 | + * @param string $text |
|
| 647 | + * @param string $specificNodeType |
|
| 648 | + * @param string $parentElementSelector |
|
| 649 | + */ |
|
| 632 | 650 | protected function getElementByTextXpath($xpathTemplate, $text, $specificNodeType = null, $parentElementSelector = null) |
| 633 | 651 | { |
| 634 | 652 | |
@@ -13,20 +13,10 @@ |
||
| 13 | 13 | use Magium\TestCase\Initializer; |
| 14 | 14 | use Magium\Themes\BaseThemeInterface; |
| 15 | 15 | use Magium\Themes\ThemeConfigurationInterface; |
| 16 | -use Magium\Util\Api\Request; |
|
| 17 | -use Magium\Util\Configuration\ClassConfigurationReader; |
|
| 18 | -use Magium\Util\Configuration\ConfigurationCollector\DefaultPropertyCollector; |
|
| 19 | -use Magium\Util\Configuration\ConfigurationReader; |
|
| 20 | -use Magium\Util\Configuration\EnvironmentConfigurationReader; |
|
| 21 | -use Magium\Util\Configuration\StandardConfigurationProvider; |
|
| 22 | 16 | use Magium\Util\Log\Logger; |
| 23 | -use Magium\Util\Api\Clairvoyant\Clairvoyant; |
|
| 24 | 17 | use Magium\Util\Phpunit\MasterListener; |
| 25 | -use Magium\Util\TestCase\RegistrationListener; |
|
| 26 | -use Magium\WebDriver\LoggingRemoteExecuteMethod; |
|
| 27 | 18 | use Magium\WebDriver\WebDriver; |
| 28 | 19 | use PHPUnit_Framework_TestResult; |
| 29 | -use Zend\Di\Config; |
|
| 30 | 20 | use Zend\Di\Di; |
| 31 | 21 | |
| 32 | 22 | abstract class AbstractTestCase extends \PHPUnit_Framework_TestCase |
@@ -5,13 +5,9 @@ |
||
| 5 | 5 | use Guzzle\Http\Client; |
| 6 | 6 | use Magium\Cli\Command\Test\TestSkeleton; |
| 7 | 7 | use Magium\InvalidConfigurationException; |
| 8 | -use Magium\NotFoundException; |
|
| 9 | 8 | use Magium\Util\Api\ApiConfiguration; |
| 10 | 9 | use Symfony\Component\Console\Command\Command; |
| 11 | -use Symfony\Component\Console\Input\ArrayInput; |
|
| 12 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 13 | 10 | use Symfony\Component\Console\Input\InputInterface; |
| 14 | -use Symfony\Component\Console\Input\InputOption; |
|
| 15 | 11 | use Symfony\Component\Console\Output\OutputInterface; |
| 16 | 12 | |
| 17 | 13 | class ApiPing extends Command |