| @@ 59-68 (lines=10) @@ | ||
| 56 | /** |
|
| 57 | * @dataProvider testxsAnyURIInvalidDataProvider |
|
| 58 | */ |
|
| 59 | public function testxsAnyURIInvalid($input, $message) |
|
| 60 | { |
|
| 61 | try { |
|
| 62 | $d = new xsAnyURI($input); |
|
| 63 | $e = (string)$d; |
|
| 64 | $this->fail($message); |
|
| 65 | } catch (\Exception $e) { |
|
| 66 | } |
|
| 67 | $this->assertEquals('', $e, $message); |
|
| 68 | } |
|
| 69 | ||
| 70 | public function testxsAnyURIInvalidDataProvider() |
|
| 71 | { |
|
| @@ 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 | { |
|
| @@ 57-65 (lines=9) @@ | ||
| 54 | /** |
|
| 55 | * @dataProvider testxsBase64BinaryInvalidDataProvider |
|
| 56 | */ |
|
| 57 | public function testxsBase64BinaryInvalid($input, $message) |
|
| 58 | { |
|
| 59 | try { |
|
| 60 | $d = new xsBase64Binary($input); |
|
| 61 | $e = (string)$d; |
|
| 62 | $this->fail($message); |
|
| 63 | }catch(\Exception $e){} |
|
| 64 | $this->assertEquals('', $e, $message); |
|
| 65 | } |
|
| 66 | ||
| 67 | public function testxsBase64BinaryInvalidDataProvider() |
|
| 68 | { |
|
| @@ 59-68 (lines=10) @@ | ||
| 56 | /** |
|
| 57 | * @dataProvider testxsBooleanInvalidDataProvider |
|
| 58 | */ |
|
| 59 | public function testxsBooleanInvalid($input, $message) |
|
| 60 | { |
|
| 61 | try { |
|
| 62 | $d = new xsBoolean($input); |
|
| 63 | $e = (string)$d; |
|
| 64 | $this->fail($message); |
|
| 65 | } catch (\Exception $e) { |
|
| 66 | } |
|
| 67 | $this->assertEquals('', $e, $message); |
|
| 68 | } |
|
| 69 | ||
| 70 | public function testxsBooleanInvalidDataProvider() |
|
| 71 | { |
|
| @@ 55-64 (lines=10) @@ | ||
| 52 | /** |
|
| 53 | * @dataProvider testxsByteInvalidDataProvider |
|
| 54 | */ |
|
| 55 | public function testxsByteInvalid($input, $message) |
|
| 56 | { |
|
| 57 | try { |
|
| 58 | $d = new xsByte($input); |
|
| 59 | $e = (string)$d; |
|
| 60 | $this->fail($message); |
|
| 61 | } catch (\Exception $e) { |
|
| 62 | } |
|
| 63 | $this->assertEquals('', $e, $message); |
|
| 64 | } |
|
| 65 | ||
| 66 | public function testxsByteInvalidDataProvider() |
|
| 67 | { |
|
| @@ 55-64 (lines=10) @@ | ||
| 52 | /** |
|
| 53 | * @dataProvider testxsDateTimeInvalidDataProvider |
|
| 54 | */ |
|
| 55 | public function testxsDateTimeInvalid($input, $message) |
|
| 56 | { |
|
| 57 | try { |
|
| 58 | $d = new xsDateTime($input); |
|
| 59 | $e = (string)$d; |
|
| 60 | $this->fail($message); |
|
| 61 | } catch (\Exception $e) { |
|
| 62 | } |
|
| 63 | $this->assertEquals('', $e, $message); |
|
| 64 | } |
|
| 65 | ||
| 66 | public function testxsDateTimeInvalidDataProvider() |
|
| 67 | { |
|
| @@ 59-68 (lines=10) @@ | ||
| 56 | /** |
|
| 57 | * @dataProvider testxsDayTimeDurationInvalidDataProvider |
|
| 58 | */ |
|
| 59 | public function testxsDayTimeDurationInvalid($input, $message) |
|
| 60 | { |
|
| 61 | try { |
|
| 62 | $d = new xsDayTimeDuration($input); |
|
| 63 | $e = (string)$d; |
|
| 64 | $this->fail($message); |
|
| 65 | } catch (\Exception $e) { |
|
| 66 | } |
|
| 67 | $this->assertEquals('', $e, $message); |
|
| 68 | } |
|
| 69 | ||
| 70 | public function testxsDayTimeDurationInvalidDataProvider() |
|
| 71 | { |
|
| @@ 62-71 (lines=10) @@ | ||
| 59 | /** |
|
| 60 | * @dataProvider testxsDecimalInvalidDataProvider |
|
| 61 | */ |
|
| 62 | public function testxsDecimalInvalid($input, $message) |
|
| 63 | { |
|
| 64 | try { |
|
| 65 | $d = new xsDecimal($input); |
|
| 66 | $e = (string)$d; |
|
| 67 | $this->fail($message); |
|
| 68 | } catch (\Exception $e) { |
|
| 69 | } |
|
| 70 | $this->assertEquals('', $e, $message); |
|
| 71 | } |
|
| 72 | ||
| 73 | public function testxsDecimalInvalidDataProvider() |
|
| 74 | { |
|
| @@ 60-69 (lines=10) @@ | ||
| 57 | /** |
|
| 58 | * @dataProvider testxsDoubleInvalidDataProvider |
|
| 59 | */ |
|
| 60 | public function testxsDoubleInvalid($input, $message) |
|
| 61 | { |
|
| 62 | try { |
|
| 63 | $d = new xsBase64Binary($input); |
|
| 64 | $e = (string)$d; |
|
| 65 | $this->fail($message); |
|
| 66 | } catch (\Exception $e) { |
|
| 67 | } |
|
| 68 | $this->assertEquals('', $e, $message); |
|
| 69 | } |
|
| 70 | ||
| 71 | public function testxsDoubleInvalidDataProvider() |
|
| 72 | { |
|