Jackalope\Observation\EventFilter::setAbsPath PHP Method

setAbsPath() public method

{@inheritDoc}
public setAbsPath ( $absPath )
    public function setAbsPath($absPath)
    {
        $this->absPath = $absPath;
        return $this;
    }

Usage Example

 public function testFiltering()
 {
     $this->filter->setAbsPath('/something-not-matching');
     $buffer = new TestBuffer($this->factory, $this->filter, $this->transport, $this->nodeTypeManager, 'http://localhost:8080/server/tests/jcr%3aroot');
     $events = $this->getAndCallMethod($buffer, 'extractEvents', array($this->getDomElement($this->eventXml), 'system'));
     $this->assertEquals(array(), $events);
 }