Code Duplication    Length = 9-10 lines in 7 locations

tests/unit/xsAnyURITest.php 1 location

@@ 63-72 (lines=10) @@
60
     * @param mixed $input
61
     * @param mixed $message
62
     */
63
    public function testxsAnyURIInvalid($input, $message)
64
    {
65
        try {
66
            $d = new xsAnyURI($input);
67
            $s = (string)$d;
68
            $this->fail($message);
69
        } catch (\Exception $e) {
70
        }
71
        $this->assertEquals('', $s, $message);
72
    }
73
74
    public function testxsAnyURIInvalidDataProvider()
75
    {

tests/unit/xsBase64BinaryTest.php 1 location

@@ 60-68 (lines=9) @@
57
     * @param mixed $input
58
     * @param mixed $message
59
     */
60
    public function testxsBase64BinaryInvalid($input, $message)
61
    {
62
        try {
63
            $d = new xsBase64Binary($input);
64
            $s = (string)$d;
65
            $this->fail($message);
66
        } catch (\Exception $e) {
67
        }
68
        $this->assertEquals('', $s, $message);
69
    }
70
71
    public function testxsBase64BinaryInvalidDataProvider()

tests/unit/xsByteTest.php 1 location

@@ 59-68 (lines=10) @@
56
     * @param mixed $input
57
     * @param mixed $message
58
     */
59
    public function testxsByteInvalid($input, $message)
60
    {
61
        try {
62
            $d = new xsByte($input);
63
            $s = (string)$d;
64
            $this->fail($message);
65
        } catch (\Exception $e) {
66
        }
67
        $this->assertEquals('', $s, $message);
68
    }
69
70
    public function testxsByteInvalidDataProvider()
71
    {

tests/unit/xsDateTimeTest.php 1 location

@@ 59-68 (lines=10) @@
56
     * @param mixed $input
57
     * @param mixed $message
58
     */
59
    public function testxsDateTimeInvalid($input, $message)
60
    {
61
        try {
62
            $d = new xsDateTime($input);
63
            $s = (string)$d;
64
            $this->fail($message);
65
        } catch (\Exception $e) {
66
        }
67
        $this->assertEquals('', $s, $message);
68
    }
69
70
    public function testxsDateTimeInvalidDataProvider()
71
    {

tests/unit/xsDayTimeDurationTest.php 1 location

@@ 63-72 (lines=10) @@
60
     * @param mixed $input
61
     * @param mixed $message
62
     */
63
    public function testxsDayTimeDurationInvalid($input, $message)
64
    {
65
        try {
66
            $d = new xsDayTimeDuration($input);
67
            $s = (string)$d;
68
            $this->fail($message);
69
        } catch (\Exception $e) {
70
        }
71
        $this->assertEquals('', $s, $message);
72
    }
73
74
    public function testxsDayTimeDurationInvalidDataProvider()
75
    {

tests/unit/xsDecimalTest.php 1 location

@@ 66-75 (lines=10) @@
63
     * @param mixed $input
64
     * @param mixed $message
65
     */
66
    public function testxsDecimalInvalid($input, $message)
67
    {
68
        try {
69
            $d = new xsDecimal($input);
70
            $s = (string)$d;
71
            $this->fail($message);
72
        } catch (\Exception $e) {
73
        }
74
        $this->assertEquals('', $s, $message);
75
    }
76
77
    public function testxsDecimalInvalidDataProvider()
78
    {

tests/unit/xsDoubleTest.php 1 location

@@ 64-73 (lines=10) @@
61
     * @param mixed $input
62
     * @param mixed $message
63
     */
64
    public function testxsDoubleInvalid($input, $message)
65
    {
66
        try {
67
            $d = new xsBase64Binary($input);
68
            $s = (string)$d;
69
            $this->fail($message);
70
        } catch (\Exception $e) {
71
        }
72
        $this->assertEquals('', $s, $message);
73
    }
74
75
    public function testxsDoubleInvalidDataProvider()
76
    {