• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress develop tests

WordPress develop tests

WordPress develop tests a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Tests_Compat_isCountable::test_is_countable_functionality() – Test is_countable() polyfill.

You appear to be a bot. Output may be restricted

Description

Test is_countable() polyfill.

Usage

Tests_Compat_isCountable::test_is_countable_functionality( $variable, $is_countable );

Parameters

$variable
( mixed ) required – Variable to check.
$is_countable
( bool ) required – The expected return value of PHP 7.3 is_countable() function.

Returns

void

Source

File name: wordpress-develop-tests/phpunit/tests/compat/isCountable.php


Lines:

1 to 4 of 4
  public function test_is_countable_functionality( $variable, $is_countable ) {
    $this->assertSame( $is_countable, is_countable( $variable ) );
  }
 

 View on GitHub

Published: 20th March 2022 | Last updated: 20th March 2022

Primary Sidebar

Information

Function name: Tests_Compat_isCountable::test_is_countable_functionality
Class ref: Tests_Compat_isCountable
Plugin ref: WordPress develop tests
Version: 5.9.3
Sourcefile: phpunit/tests/compat/isCountable.php
File ref: phpunit/tests/compat/isCountable.php
Deprecated?: No
API Letters: C,I,T

Footer

WordPress develop tests
WordPress develop tests
WordPress develop tests a2z
WordPress 6.4.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  develop.wp-a2z.org
© Copyright WordPress develop tests 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites