Code Duplication    Length = 9-9 lines in 2 locations

tests/Formatter/StringFormatterTest.php 2 locations

@@ 10-18 (lines=9) @@
7
8
class StringFormatterTest extends TestCase
9
{
10
    public function testFormatterTrimsStrings()
11
    {
12
        $formatter = new StringFormatter();
13
        $formatter->setTrim(true);
14
15
        $value = $formatter->format(' foo bar baz ');
16
17
        $this->assertSame('foo bar baz', $value);
18
    }
19
20
    public function testFormatterDoesNotTrimStrings()
21
    {
@@ 20-28 (lines=9) @@
17
        $this->assertSame('foo bar baz', $value);
18
    }
19
20
    public function testFormatterDoesNotTrimStrings()
21
    {
22
        $formatter = new StringFormatter();
23
        $formatter->setTrim(false);
24
25
        $value = $formatter->format(' foo bar baz ');
26
27
        $this->assertSame(' foo bar baz ', $value);
28
    }
29
}
30