Code Duplication    Length = 13-14 lines in 2 locations

Tests/ViewModel/ViewModelAssemblerTest.php 2 locations

@@ 58-70 (lines=13) @@
55
     * @expectedException        InvalidArgumentException
56
     * @expectedExceptionMessage date not exists
57
     */
58
    public function testValidateViewModelBySkelExceptionOne()
59
    {
60
        $assembler = new ViewModelAssemblerTestClass();
61
        $assembler->validateViewModelBySkel(new ViewModelNode(array(
62
            'authors' => array(
63
                'gotakk',
64
                'nickname' => 'gotakk',
65
            ),
66
        )), array(
67
            'date',
68
            'authors' => array(),
69
        ));
70
    }
71
72
    /**
73
     * @expectedException        InvalidArgumentException
@@ 114-127 (lines=14) @@
111
     * @expectedException        InvalidArgumentException
112
     * @expectedExceptionMessage authors is not sequential array. Contains not numeric key (nickname)
113
     */
114
    public function testValidateViewModelBySkelExceptionSequentialArray()
115
    {
116
        $assembler = new ViewModelAssemblerTestClass();
117
        $assembler->validateViewModelBySkel(new ViewModelNode(array(
118
            'date' => '2015-09-01',
119
            'authors' => array(
120
                'gotakk',
121
                'nickname' => 'gotakk',
122
            ),
123
        )), array(
124
            'date',
125
            'authors' => array(),
126
        ));
127
    }
128
}
129