| 1 | <?php |
||
| 13 | abstract class AbstractAssertion implements LoggerAware, TestCaseAware, WebDriverAware |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Logger |
||
| 17 | */ |
||
| 18 | |||
| 19 | protected $logger; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var \PHPUnit_Framework_TestCase |
||
| 23 | */ |
||
| 24 | |||
| 25 | protected $testCase; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var WebDriver |
||
| 29 | */ |
||
| 30 | |||
| 31 | protected $webDriver; |
||
| 32 | |||
| 33 | public function setWebDriver(WebDriver $webdriver) |
||
| 37 | |||
| 38 | public function setLogger(Logger $logger) |
||
| 42 | |||
| 43 | public function setTestCase(\PHPUnit_Framework_TestCase $testCase) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return AbstractTestCase|\PHPUnit_Framework_TestCase |
||
| 50 | * @throws InvalidTestTypeException |
||
| 51 | */ |
||
| 52 | |||
| 53 | protected function getTestCase() |
||
| 60 | |||
| 61 | |||
| 62 | abstract public function assert(); |
||
| 63 | } |