@@ -28,8 +28,8 @@ public function testParseSunatSOL($filename)
28
28
/**@var $obj Invoice */
29
29
$ obj = $ parser ->parse ($ xml );
30
30
31
- $ this ->assertRegExp ('/^0\d{1}/ ' , $ obj ->getTipoDoc ());
32
- $ this ->assertRegExp ('/^E\w{3}/ ' , $ obj ->getSerie ());
31
+ $ this ->assertMatchesRegularExpression ('/^0\d{1}/ ' , $ obj ->getTipoDoc ());
32
+ $ this ->assertMatchesRegularExpression ('/^E\w{3}/ ' , $ obj ->getSerie ());
33
33
$ this ->assertLessThanOrEqual (8 , strlen ($ obj ->getCorrelativo ()));
34
34
$ this ->assertNotEmpty ($ obj ->getFechaEmision ());
35
35
$ this ->assertGreaterThanOrEqual (1 , count ($ obj ->getDetails ()));
@@ -52,8 +52,8 @@ public function testFacParse($filename)
52
52
/**@var $obj Invoice */
53
53
$ obj = $ parser ->parse ($ xml );
54
54
55
- $ this ->assertRegExp ('/^0\d{1}/ ' , $ obj ->getTipoDoc ());
56
- $ this ->assertRegExp ('/^[FB]\w{3}/ ' , $ obj ->getSerie ());
55
+ $ this ->assertMatchesRegularExpression ('/^0\d{1}/ ' , $ obj ->getTipoDoc ());
56
+ $ this ->assertMatchesRegularExpression ('/^[FB]\w{3}/ ' , $ obj ->getSerie ());
57
57
$ this ->assertLessThanOrEqual (8 , strlen ($ obj ->getCorrelativo ()));
58
58
$ this ->assertNotEmpty ($ obj ->getFechaEmision ());
59
59
$ this ->assertGreaterThanOrEqual (1 , count ($ obj ->getDetails ()));
@@ -71,8 +71,8 @@ public function testFacParseFromDoc()
71
71
/**@var $obj Invoice */
72
72
$ obj = $ parser ->parse ($ doc );
73
73
74
- $ this ->assertRegExp ('/^0\d{1}/ ' , $ obj ->getTipoDoc ());
75
- $ this ->assertRegExp ('/^[FB]\w{3}/ ' , $ obj ->getSerie ());
74
+ $ this ->assertMatchesRegularExpression ('/^0\d{1}/ ' , $ obj ->getTipoDoc ());
75
+ $ this ->assertMatchesRegularExpression ('/^[FB]\w{3}/ ' , $ obj ->getSerie ());
76
76
$ this ->assertLessThanOrEqual (8 , strlen ($ obj ->getCorrelativo ()));
77
77
$ this ->assertNotEmpty ($ obj ->getFechaEmision ());
78
78
$ this ->assertGreaterThanOrEqual (1 , count ($ obj ->getDetails ()));
0 commit comments