Code Duplication    Length = 9-10 lines in 8 locations

tests/unit/xsAnyURITest.php 1 location

@@ 34-42 (lines=9) @@
31
     * @param mixed $input
32
     * @param mixed $message
33
     */
34
    public function testxsAnyURIValid($input, $message)
35
    {
36
        try {
37
            $d = new xsAnyURI($input);
38
            $e = (string)$d;
39
        } catch (\Exception $e) {
40
            $this->fail($message . ' with Exception ' . $e->getMessage());
41
        }
42
    }
43
44
    public function testxsAnyURIValidDataProvider()
45
    {

tests/unit/xsBase64BinaryTest.php 1 location

@@ 34-43 (lines=10) @@
31
     * @param mixed $input
32
     * @param mixed $message
33
     */
34
    public function testxsBase64BinaryValid($input, $message)
35
    {
36
        try {
37
            $d = new xsBase64Binary($input);
38
            $e = (string)$d;
39
        } catch (\Exception $e) {
40
            $this->fail($message . ' with Exception ' . $e->getMessage());
41
        }
42
    }
43
44
    public function testxsBase64BinaryValidDataProvider()
45
    {
46
        return array(

tests/unit/xsBooleanTest.php 1 location

@@ 34-42 (lines=9) @@
31
     * @param mixed $input
32
     * @param mixed $message
33
     */
34
    public function testxsBooleanValid($input, $message)
35
    {
36
        try {
37
            $d = new xsBoolean($input);
38
            $e = (string)$d;
39
        } catch (\Exception $e) {
40
            $this->fail($message . ' with Exception ' . $e->getMessage());
41
        }
42
    }
43
44
    public function testxsBooleanValidDataProvider()
45
    {

tests/unit/xsByteTest.php 1 location

@@ 34-42 (lines=9) @@
31
     * @param mixed $input
32
     * @param mixed $message
33
     */
34
    public function testxsByteValid($input, $message)
35
    {
36
        try {
37
            $d = new xsByte($input);
38
            $e = (string)$d;
39
        } catch (\Exception $e) {
40
            $this->fail($message . ' with Exception ' . $e->getMessage());
41
        }
42
    }
43
44
    public function testxsByteValidDataProvider()
45
    {

tests/unit/xsDateTimeTest.php 1 location

@@ 34-42 (lines=9) @@
31
     * @param mixed $input
32
     * @param mixed $message
33
     */
34
    public function testxsDateTimeValid($input, $message)
35
    {
36
        try {
37
            $d = new xsDateTime($input);
38
            $e = (string)$d;
39
        } catch (\Exception $e) {
40
            $this->fail($message . ' with Exception ' . $e->getMessage());
41
        }
42
    }
43
44
    public function testxsDateTimeValidDataProvider()
45
    {

tests/unit/xsDayTimeDurationTest.php 1 location

@@ 34-42 (lines=9) @@
31
     * @param mixed $input
32
     * @param mixed $message
33
     */
34
    public function testxsDayTimeDurationValid($input, $message)
35
    {
36
        try {
37
            $d = new xsDayTimeDuration($input);
38
            $e = (string)$d;
39
        } catch (\Exception $e) {
40
            $this->fail($message . ' with Exception ' . $e->getMessage());
41
        }
42
    }
43
44
    public function testxsDayTimeDurationValidDataProvider()
45
    {

tests/unit/xsDecimalTest.php 1 location

@@ 34-42 (lines=9) @@
31
     * @param mixed $input
32
     * @param mixed $message
33
     */
34
    public function testxsDecimalValid($input, $message)
35
    {
36
        try {
37
            $d = new xsDecimal($input);
38
            $e = (string)$d;
39
        } catch (\Exception $e) {
40
            $this->fail($message . ' with Exception ' . $e->getMessage());
41
        }
42
    }
43
44
    public function testxsDecimalValidDataProvider()
45
    {

tests/unit/xsDoubleTest.php 1 location

@@ 34-42 (lines=9) @@
31
     * @param mixed $input
32
     * @param mixed $message
33
     */
34
    public function testxsDoubleValid($input, $message)
35
    {
36
        try {
37
            $d = new xsDouble($input);
38
            $e = (string)$d;
39
        } catch (\Exception $e) {
40
            $this->fail($message . ' with Exception ' . $e->getMessage());
41
        }
42
    }
43
44
    public function testxsDoubleValidDataProvider()
45
    {