4
4
5
5
use \WP_Mock as Mock ;
6
6
use \Patchwork as p ;
7
- use \SkyVerge \WooCommerce \PluginFramework \v5_10_2 as PluginFramework ;
7
+ use \SkyVerge \WooCommerce \PluginFramework \v5_10_3 as PluginFramework ;
8
8
9
9
/**
10
10
* Helper Class Unit Tests
@@ -31,7 +31,7 @@ class Helper extends Test_Case {
31
31
public function test_str_starts_with_ascii ( $ asserts_as_true , $ haystack , $ needle ) {
32
32
33
33
// force ASCII handling
34
- p \redefine ( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2 \SV_WC_Helper::multibyte_loaded ' , function () { return false ; } );
34
+ p \redefine ( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3 \SV_WC_Helper::multibyte_loaded ' , function () { return false ; } );
35
35
36
36
if ( $ asserts_as_true ) {
37
37
$ this ->assertTrue ( PluginFramework \SV_WC_Helper::str_starts_with ( $ haystack , $ needle ) );
@@ -116,7 +116,7 @@ public function provider_str_starts_with_mb() {
116
116
public function test_str_ends_with_ascii ( $ asserts_as_true , $ haystack , $ needle ) {
117
117
118
118
// force ASCII handling
119
- p \redefine ( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2 \SV_WC_Helper::multibyte_loaded ' , function () { return false ; } );
119
+ p \redefine ( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3 \SV_WC_Helper::multibyte_loaded ' , function () { return false ; } );
120
120
121
121
if ( $ asserts_as_true ) {
122
122
$ this ->assertTrue ( PluginFramework \SV_WC_Helper::str_ends_with ( $ haystack , $ needle ) );
@@ -265,7 +265,7 @@ public function provider_test_str_to_sane_utf8() {
265
265
public function test_str_exists_ascii ( $ asserts_as_true , $ haystack , $ needle ) {
266
266
267
267
// force ASCII handling
268
- p \redefine ( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2 \SV_WC_Helper::multibyte_loaded ' , function () { return false ; } );
268
+ p \redefine ( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3 \SV_WC_Helper::multibyte_loaded ' , function () { return false ; } );
269
269
270
270
if ( $ asserts_as_true ) {
271
271
$ this ->assertTrue ( PluginFramework \SV_WC_Helper::str_exists ( $ haystack , $ needle ) );
@@ -346,7 +346,7 @@ public function provider_str_exists_mb() {
346
346
public function test_str_truncate_ascii () {
347
347
348
348
// force ASCII handling
349
- p \redefine ( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2 \SV_WC_Helper::multibyte_loaded ' , function () { return false ; } );
349
+ p \redefine ( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3 \SV_WC_Helper::multibyte_loaded ' , function () { return false ; } );
350
350
351
351
$ the_string = 'The quick brown fox jumps ಠ_ಠ ' ;
352
352
0 commit comments