PHP code example of johnbillion / falsey-assertequals-detector

1. Go to this page and download the library: Download johnbillion/falsey-assertequals-detector library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

johnbillion / falsey-assertequals-detector example snippets


$expected = false;
$actual   = 0;

assertEquals( $expected, $actual );
diff
 class My_Test extends \PHPUnit\Framework\TestCase {
 
+    use \FalseyAssertEqualsDetector\Test;
+
     public function testSomethingFalsey() {
         $this->assertEquals( 0, false );
     }
 }