| Total Complexity | 5 | 
| Total Lines | 62 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 11 | class FilteringObjectTest extends TestCase  | 
            ||
| 12 | { | 
            ||
| 13 | /**  | 
            ||
| 14 | * @covers ::__construct  | 
            ||
| 15 | * @covers ::fromFilter  | 
            ||
| 16 | * @covers ::hasOperator  | 
            ||
| 17 | */  | 
            ||
| 18 | public function testContainsOperatorInSecondPartOfFilter()  | 
            ||
| 19 |     { | 
            ||
| 20 |         $fo = FilteringObject::fromFilter('foo|op'); | 
            ||
| 21 | |||
| 22 | $this->assertSame(true, $fo->hasOperator());  | 
            ||
| 23 | }  | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * @covers ::__construct  | 
            ||
| 27 | * @covers ::fromFilter  | 
            ||
| 28 | * @covers ::hasOperator  | 
            ||
| 29 | */  | 
            ||
| 30 | public function testHasNoOperatorIfFilterDoesNotContainThePipe()  | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * @covers ::__construct  | 
            ||
| 39 | * @covers ::fromFilter  | 
            ||
| 40 | * @covers ::getOperatorSign  | 
            ||
| 41 | * @covers ::getOperator  | 
            ||
| 42 | */  | 
            ||
| 43 | public function testProvideOperatorsSign()  | 
            ||
| 44 |     { | 
            ||
| 45 |         $fo = FilteringObject::fromFilter('foo'); | 
            ||
| 46 | |||
| 47 |         $this->assertSame('=', $fo->getOperatorSign()); | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * @covers ::__construct  | 
            ||
| 52 | * @covers ::fromFilter  | 
            ||
| 53 | * @covers ::getOperatorSign  | 
            ||
| 54 | * @covers ::getOperator  | 
            ||
| 55 | */  | 
            ||
| 56 | public function testProvideOperators()  | 
            ||
| 57 |     { | 
            ||
| 58 |         $fo = FilteringObject::fromFilter('foo|eq'); | 
            ||
| 59 | |||
| 60 |         $this->assertSame('eq', $fo->getOperator()); | 
            ||
| 61 | }  | 
            ||
| 62 | |||
| 63 | /**  | 
            ||
| 64 | * @covers ::__construct  | 
            ||
| 65 | * @covers ::fromFilter  | 
            ||
| 66 | * @covers ::getFieldName  | 
            ||
| 67 | */  | 
            ||
| 68 | public function testProvideFilterName()  | 
            ||
| 73 | }  | 
            ||
| 74 | }  | 
            ||
| 75 |