Code Duplication    Length = 15-15 lines in 2 locations

tests/Sensorario/Resources/RuleTest.php 2 locations

@@ 68-82 (lines=15) @@
65
        );
66
    }
67
68
    public function testIs()
69
    {
70
        $rule = Rule::fromArray(
71
            $ruleConfiguration = [
72
                Rule::TYPE_OBJECT => [
73
                    '\DateTime',
74
                ]
75
            ]
76
        );
77
78
        $this->assertSame(
79
            true,
80
            $rule->is(Rule::TYPE_OBJECT)
81
        );
82
    }
83
84
    public function testIsNot()
85
    {
@@ 84-98 (lines=15) @@
81
        );
82
    }
83
84
    public function testIsNot()
85
    {
86
        $rule = Rule::fromArray(
87
            $ruleConfiguration = [
88
                Rule::TYPE_OBJECT => [
89
                    '\DateTime',
90
                ]
91
            ]
92
        );
93
94
        $this->assertSame(
95
            false,
96
            $rule->isNot(Rule::TYPE_OBJECT)
97
        );
98
    }
99
}
100