Go\Aop\Support\OrPointFilter::getKind PHP Method

getKind() public method

Returns the kind of point filter
public getKind ( ) : integer
return integer
    public function getKind()
    {
        return $this->kind;
    }

Usage Example

Beispiel #1
0
 /**
  * Tests that filter combined different kinds of filters
  */
 public function testKindIsCombined()
 {
     $first = $this->getMock('Go\\Aop\\PointFilter');
     $first->expects($this->any())->method('getKind')->will($this->returnValue(PointFilter::KIND_METHOD | PointFilter::KIND_PROPERTY));
     $second = $this->getMock('Go\\Aop\\PointFilter');
     $second->expects($this->any())->method('getKind')->will($this->returnValue(PointFilter::KIND_METHOD | PointFilter::KIND_FUNCTION));
     $filter = new OrPointFilter($first, $second);
     $expected = PointFilter::KIND_METHOD | PointFilter::KIND_FUNCTION | PointFilter::KIND_PROPERTY;
     $this->assertEquals($expected, $filter->getKind());
 }