Code Duplication    Length = 25-25 lines in 2 locations

tests/MappedHeaderStrategyTest.php 1 location

@@ 62-86 (lines=25) @@
59
     * @test
60
     * @covers ::createDataRow
61
     */
62
    public function createDataRow()
63
    {
64
        $row = [
65
            'bk101',
66
            'Gambardella, Matthew',
67
            'XML Developer\'s Guide',
68
            'Computer',
69
            '44.95',
70
            '2000-10-01',
71
            'An in-depth look at creating applications with XML.',
72
        ];
73
        $strategy = $this->getStrategy();
74
        $this->assertSame(
75
            [
76
                'Book ID' => 'bk101',
77
                'Author' => 'Gambardella, Matthew',
78
                'Title' => 'XML Developer\'s Guide',
79
                'Genre' => 'Computer',
80
                'Price' => '44.95',
81
                'Publish Date' => '2000-10-01',
82
                'Description' => 'An in-depth look at creating applications with XML.',
83
            ],
84
            $strategy->createDataRow($row)
85
        );
86
    }
87
88
    private function getFileObject() : SplFileObject
89
    {

tests/ProvidedHeaderStrategyTest.php 1 location

@@ 54-78 (lines=25) @@
51
     * @test
52
     * @covers ::createDataRow
53
     */
54
    public function createDataRow()
55
    {
56
        $row = [
57
            'bk101',
58
            'Gambardella, Matthew',
59
            'XML Developer\'s Guide',
60
            'Computer',
61
            '44.95',
62
            '2000-10-01',
63
            'An in-depth look at creating applications with XML.',
64
        ];
65
        $strategy = $this->getStrategy();
66
        $this->assertSame(
67
            [
68
                'id' => 'bk101',
69
                'author' => 'Gambardella, Matthew',
70
                'title' => 'XML Developer\'s Guide',
71
                'genre' => 'Computer',
72
                'price' => '44.95',
73
                'publish_date' => '2000-10-01',
74
                'description' => 'An in-depth look at creating applications with XML.',
75
            ],
76
            $strategy->createDataRow($row)
77
        );
78
    }
79
80
    private function getFileObject() : SplFileObject
81
    {