shim.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. // @codingStandardsIgnoreStart
  3. namespace {
  4. \Codeception\PHPUnit\Init::init();
  5. }
  6. namespace Symfony\Component\CssSelector {
  7. if (!class_exists('Symfony\Component\CssSelector\CssSelectorConverter')) {
  8. class CssSelectorConverter {
  9. function toXPath($cssExpr, $prefix = 'descendant-or-self::') {
  10. return CssSelector::toXPath($cssExpr, $prefix);
  11. }
  12. }
  13. }
  14. }
  15. // prefering old names
  16. namespace Codeception\TestCase {
  17. class Test extends \Codeception\Test\Unit {
  18. }
  19. }
  20. namespace Codeception\Module {
  21. class Symfony2 extends Symfony {
  22. }
  23. class Phalcon1 extends Phalcon {
  24. }
  25. class Phalcon2 extends Phalcon {
  26. }
  27. }
  28. namespace Codeception\Platform {
  29. abstract class Group extends \Codeception\GroupObject
  30. {
  31. }
  32. abstract class Extension extends \Codeception\Extension
  33. {
  34. }
  35. }
  36. namespace {
  37. class_alias('Codeception\TestInterface', 'Codeception\TestCase');
  38. // loading WebDriver aliases
  39. if (!class_exists('RemoteWebDriver') and class_exists('Facebook\WebDriver\Remote\RemoteWebDriver')) {
  40. class RemoteWebDriver extends \Facebook\WebDriver\Remote\RemoteWebDriver {};
  41. class InvalidSelectorException extends Facebook\WebDriver\Exception\InvalidSelectorException {};
  42. class NoSuchElementException extends Facebook\WebDriver\Exception\NoSuchElementException {};
  43. class WebDriverCurlException extends Facebook\WebDriver\Exception\WebDriverCurlException {};
  44. class WebDriverActions extends Facebook\WebDriver\Interactions\WebDriverActions {};
  45. class LocalFileDetector extends Facebook\WebDriver\Remote\LocalFileDetector {};
  46. class WebDriverCapabilityType extends Facebook\WebDriver\Remote\WebDriverCapabilityType {};
  47. class WebDriverAlert extends Facebook\WebDriver\WebDriverAlert {};
  48. class WebDriverBy extends Facebook\WebDriver\WebDriverBy {};
  49. class WebDriverDimension extends Facebook\WebDriver\WebDriverDimension {};
  50. class RemoteWebElement extends Facebook\WebDriver\Remote\RemoteWebElement {};
  51. class WebDriverExpectedCondition extends Facebook\WebDriver\WebDriverExpectedCondition {};
  52. class WebDriverKeys extends Facebook\WebDriver\WebDriverKeys {};
  53. class WebDriverSelect extends Facebook\WebDriver\WebDriverSelect {};
  54. class WebDriverTimeouts extends Facebook\WebDriver\WebDriverTimeouts {};
  55. class WebDriverWindow extends Facebook\WebDriver\WebDriverWindow {};
  56. interface WebDriverElement extends Facebook\WebDriver\WebDriverElement {};
  57. }
  58. }