Code Duplication    Length = 9-10 lines in 8 locations

tests/unit/xsAnyURITest.php 1 location

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

tests/unit/xsBase64BinaryTest.php 1 location

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

tests/unit/xsBooleanTest.php 1 location

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

tests/unit/xsByteTest.php 1 location

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

tests/unit/xsDateTimeTest.php 1 location

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

tests/unit/xsDayTimeDurationTest.php 1 location

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

tests/unit/xsDecimalTest.php 1 location

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

tests/unit/xsDoubleTest.php 1 location

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