function KernelAssertLegacyTraitTest::testAssertFalse

@expectedDeprecation Support for asserting against non-boolean values in ::assertFalse is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use a different assert method, for example, ::assertEmpty(). See https://www.drupal.org/node/3082086

File

core/tests/Drupal/Tests/Core/Assert/KernelAssertLegacyTraitTest.php, line 27

Class

KernelAssertLegacyTraitTest
@coversDefaultClass <a href="/api/drupal/core%21tests%21Drupal%21KernelTests%21AssertLegacyTrait.php/trait/AssertLegacyTrait/8.9.x" title="Translates Simpletest assertion methods to PHPUnit." class="local">\Drupal\KernelTests\AssertLegacyTrait</a> @group Assert @group legacy

Namespace

Drupal\Tests\Core\Assert

Code

public function testAssertFalse() {
    $this->assertFalse(0);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.