/**
  * @expectedException \aik099\QATools\PageObject\Exception\AnnotationException
  * @expectedExceptionCode \aik099\QATools\PageObject\Exception\AnnotationException::TYPE_REQUIRED
  */
 public function testGetSelectorFailure()
 {
     $this->property->shouldReceive('__toString')->andReturn('OK');
     $this->property->shouldReceive('getDataType')->andReturnNull();
     $this->property->shouldReceive('getAnnotationsFromPropertyOrClass')->with('@find-by')->andReturn(array());
     $this->assertCount(0, $this->locator->findAll());
 }
 /**
  * Find the element list.
  *
  * @return NodeElement[]
  */
 public function findAll()
 {
     if ($this->timeout == 0) {
         return parent::findAll();
     }
     return $this->searchContext->waitFor($this->timeout, array($this, 'parent::findAll'));
 }