protected function setUp()
 {
     if (is_null($this->collectionClass)) {
         $this->collectionClass = '\\tests\\aik099\\QATools\\HtmlElements\\Fixture\\Element\\TypifiedElementCollectionChild';
         $this->collectionElementClass = '\\aik099\\QATools\\HtmlElements\\Element\\TextInput';
     }
     $this->webElement = m::mock(self::WEB_ELEMENT_CLASS);
     $this->webElement->shouldReceive('getSession')->withNoArgs()->andReturn($this->session);
     parent::setUp();
 }
 public function testToString()
 {
     $element = $this->createElement();
     $this->webElement->shouldReceive('getXpath')->andReturn('XPATH');
     $expected = 'element (class: ' . get_class($element) . '; xpath: XPATH)';
     $this->assertEquals($expected, (string) $element);
 }