/**
* Tests that filter intersect different kinds of filters
*/
public function testKindIsIntersected()
{
$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 AndPointFilter($first, $second);
$this->assertEquals(PointFilter::KIND_METHOD, $filter->getKind());
}