assertequals vs assertsame
// assertSame reports an error if the two variables $expected and $actual
// do not have the SAME TYPE AND VALUE.
'2204' !== 2204
assertSame('2204', 2204) // this test fails
// assertEquals reports an error if the two variables $expected and $actual
// are NOT EQUAL. IT DOES NOT APPEAR TO TAKE DATATYPE INTO CONSIDERATION.
'2204' == 2204
assertEquals('2204', 2204) // this test passes
Also in PHP:
- composer create laravel project
- Date %a php
- fetch today data in php
- edit function php exec time
- composer install in laravel project
- call a seeder in database laravel
- What is the format of date function in PHP *
- check type of result php
- array_unique in laravel collection
- Warning: mysqli_fetch_all() expects parameter 1 to be mysqli_result, bool given in C:\newxammp\htdocs\learn\index.php on line 11
- download xampp php 7.3
- database seeding in laravel
- STING TO UPPER PHP
- count characters string php
- date now in php
- Deleting an element from an array in PHP
- 1,458.00 to save as float php
- add a snippet in twig shopware 6
- create laravel seeder
- clear cache in laravel 8
- create laravel v 6.8
- can i get mac id of laptop with php
- display errors php
- Str::is() laravel examples