From 73b44c98652d0ba6152e5cda7dbc6e8a113d9679 Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Mon, 26 Aug 2019 18:15:43 -0500 Subject: [PATCH] Compatibility with build on 7.0 --- tests/Unit/CfdiDataBuilderTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Unit/CfdiDataBuilderTest.php b/tests/Unit/CfdiDataBuilderTest.php index 05cf196..47f794b 100644 --- a/tests/Unit/CfdiDataBuilderTest.php +++ b/tests/Unit/CfdiDataBuilderTest.php @@ -74,8 +74,8 @@ public function testCreateTfdSourceStringWithTfd11() { $comprobante = Cfdi::newFromString($this->fileContents('cfdi33-valid.xml'))->getNode(); $builder = new CfdiDataBuilder(); - $this->assertStringContainsString( - '|1.1|9FB6ED1A-5F37-4FEF-980A-7F8C83B51894|', + $this->assertStringStartsWith( + '||1.1|9FB6ED1A-5F37-4FEF-980A-7F8C83B51894|', $builder->createTfdSourceString($comprobante) ); } @@ -93,8 +93,8 @@ public function testCreateTfdSourceStringWithTfd10() ]); $builder = new CfdiDataBuilder(); - $this->assertStringContainsString( - '|1.0|9FB6ED1A-5F37-4FEF-980A-7F8C83B51894|', + $this->assertStringStartsWith( + '||1.0|9FB6ED1A-5F37-4FEF-980A-7F8C83B51894|', $builder->createTfdSourceString($comprobante) ); }