projects/plugins/jetpack/tests/php/sync/test_interface.jetpack-sync-codec.php 1 location
|
@@ 73-82 (lines=10) @@
|
70 |
|
} |
71 |
|
|
72 |
|
public function codec_provider( $name ) { |
73 |
|
if ( ! self::$all_codecs ) { |
74 |
|
// detect classes that implement Automattic\Jetpack\Sync\Codec_Interface |
75 |
|
self::$all_codecs = array(); |
76 |
|
|
77 |
|
foreach ( get_declared_classes() as $className ) { |
78 |
|
if ( in_array( 'Automattic\\Jetpack\\Sync\\Codec_Interface', class_implements( $className ) ) ) { |
79 |
|
self::$all_codecs[] = $className; |
80 |
|
} |
81 |
|
} |
82 |
|
} |
83 |
|
|
84 |
|
$return = array(); |
85 |
|
|
projects/plugins/jetpack/tests/php/sync/test_interface.jetpack-sync-replicastore.php 1 location
|
@@ 1009-1018 (lines=10) @@
|
1006 |
|
} |
1007 |
|
|
1008 |
|
public function store_provider( $name ) { |
1009 |
|
if ( ! self::$all_replicastores ) { |
1010 |
|
// detect classes that implement iJetpack_Sync_Replicastore |
1011 |
|
self::$all_replicastores = array(); |
1012 |
|
|
1013 |
|
foreach ( get_declared_classes() as $className ) { |
1014 |
|
if ( in_array( 'Automattic\\Jetpack\\Sync\\Replicastore_Interface', class_implements( $className ) ) ) { |
1015 |
|
self::$all_replicastores[] = $className; |
1016 |
|
} |
1017 |
|
} |
1018 |
|
} |
1019 |
|
|
1020 |
|
$return = array(); |
1021 |
|
|