Code Duplication    Length = 13-13 lines in 2 locations

eZ/Publish/Core/REST/Common/Tests/Input/DispatcherTest.php 2 locations

@@ 42-54 (lines=13) @@
39
    /**
40
     * @expectedException \eZ\Publish\Core\REST\Common\Exceptions\Parser
41
     */
42
    public function testParseInvalidContentType()
43
    {
44
        $message = new Common\Message(
45
            array(
46
                'Content-Type' => 'text/html',
47
            )
48
        );
49
50
        $parsingDispatcher = $this->getParsingDispatcherMock();
51
        $dispatcher = new Common\Input\Dispatcher($parsingDispatcher);
52
53
        $dispatcher->parse($message);
54
    }
55
56
    /**
57
     * @expectedException \eZ\Publish\Core\REST\Common\Exceptions\Parser
@@ 59-71 (lines=13) @@
56
    /**
57
     * @expectedException \eZ\Publish\Core\REST\Common\Exceptions\Parser
58
     */
59
    public function testParseMissingFormatHandler()
60
    {
61
        $message = new Common\Message(
62
            array(
63
                'Content-Type' => 'text/html+unknown',
64
            )
65
        );
66
67
        $parsingDispatcher = $this->getParsingDispatcherMock();
68
        $dispatcher = new Common\Input\Dispatcher($parsingDispatcher);
69
70
        $dispatcher->parse($message);
71
    }
72
73
    public function testParse()
74
    {