@@ -29,7 +29,7 @@ public function testCreateInstance(): void
2929 $ estado = 'MEX ' ;
3030 $ municipio = '051 ' ;
3131 $ localidad = '' ;
32- $ estimuloFrontera = false ;
32+ $ estimuloFrontera = 0 ;
3333 $ husoHorario = $ this ->createHusoHorario ();
3434 $ vigenteDesde = 0 ;
3535 $ vigenteHasta = strtotime ('2019-01-13 ' );
@@ -61,18 +61,19 @@ public function testPropertyEstadoCannotBeEmpty(): void
6161 {
6262 $ this ->expectException (SatCatalogosLogicException::class);
6363 $ this ->expectExceptionMessage ('El campo estado no puede ser una cadena de caracteres vacía ' );
64- new CodigoPostal ('52000 ' , '' , '' , '' , false , $ this ->createHusoHorario (), 0 , 0 );
64+ new CodigoPostal ('52000 ' , '' , '' , '' , 0 , $ this ->createHusoHorario (), 0 , 0 );
6565 }
6666
6767 /**
68- * @param bool $estimuloFrontera
69- * @testWith [ true]
70- * [false ]
68+ * @testWith [0, false]
69+ * [1, true]
70+ * [2, true ]
7171 */
72- public function testPropertyEstimuloFrontera (bool $ estimuloFrontera ): void
72+ public function testPropertyEstimuloFrontera (int $ estimuloFrontera, bool $ hasEstimuloFrontera ): void
7373 {
7474 $ husoHorario = $ this ->createHusoHorario ();
7575 $ codigoPostal = new CodigoPostal ('52000 ' , 'MEX ' , '051 ' , '' , $ estimuloFrontera , $ husoHorario , 0 , 0 );
7676 $ this ->assertSame ($ estimuloFrontera , $ codigoPostal ->estimuloFrontera ());
77+ $ this ->assertSame ($ hasEstimuloFrontera , $ codigoPostal ->hasEstimuloFrontera ());
7778 }
7879}
0 commit comments