protected function setUp()
 {
     parent::setUp();
     $this->property = m::mock('\\QATools\\QATools\\PageObject\\Property');
     $this->locator = m::mock($this->locatorClass);
     $this->locatorFactory = m::mock('\\QATools\\QATools\\PageObject\\ElementLocator\\IElementLocatorFactory');
     if ($this->getName() == 'testEmptyLocatorPreventsDecoration') {
         $this->locatorFactory->shouldReceive('createLocator');
     } else {
         $this->locatorFactory->shouldReceive('createLocator')->andReturn($this->locator);
     }
     $this->decorator = new $this->decoratorClass($this->locatorFactory, $this->pageFactory);
 }