Code Duplication    Length = 10-10 lines in 3 locations

tests/Helpers/IComparableTester.php 1 location

@@ 90-99 (lines=10) @@
87
     * @testdox Is compliant with ``NelsonMartell\IComparable`` interface
88
     * @depends testIComparableCompareToMethod
89
     */
90
    public function testIsCompliantWithIComparableIterface()
91
    {
92
        $message = String::format(
93
            '"{0}" do not implements "{1}" interface.',
94
            $this->getTargetClassName(),
95
            IComparable::class
96
        );
97
98
        $this->assertContains(IComparable::class, $this->getTargetClassReflection()->getInterfaceNames(), $message);
99
    }
100
}
101

tests/Helpers/IComparerTester.php 1 location

@@ 124-133 (lines=10) @@
121
     * @testdox Is compliant with ``NelsonMartell\IComparer`` interface
122
     * @depends testCanUseCompareMethodInArraySorting
123
     */
124
    public function testIsCompliantWithIComparerIterface()
125
    {
126
        $message = String::format(
127
            '"{0}" do not implements "{1}" interface.',
128
            $this->getTargetClassName(),
129
            IComparer::class
130
        );
131
132
        $this->assertContains(IComparer::class, $this->getTargetClassReflection()->getInterfaceNames(), $message);
133
    }
134
}
135

tests/Helpers/IEquatableTester.php 1 location

@@ 83-92 (lines=10) @@
80
     * @testdox Is compliant with ``NelsonMartell\IEquatable`` interface
81
     * @depends testIEquatableEqualsMethod
82
     */
83
    public function testIsCompliantWithIEquatableIterface()
84
    {
85
        $message = String::format(
86
            '"{0}" do not implements "{1}" interface.',
87
            $this->getTargetClassName(),
88
            IEquatable::class
89
        );
90
91
        $this->assertContains(IEquatable::class, $this->getTargetClassReflection()->getInterfaceNames(), $message);
92
    }
93
}
94