Skip to content

Commit

Permalink
Fixed issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
genius257 committed Sep 25, 2020
1 parent 529c3d6 commit ff403e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Unit/Constraint/IsIdentical.au3
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
;https://github.com/sebastianbergmann/phpunit/blob/master/src/Framework/Constraint/IsIdentical.php

Func Au3UnitConstraintIsIdentical_Evaluate($other, $description = "", $returnResult = false, $line = Null, $exspected = Null)
Local $success = $exspected == $other
Local $success = VarGetType($exspected) == VarGetType($other)
If IsString($exspected) Then
$success = $success And $exspected == $other
Else
$success = $success And $exspected = $other
EndIf

If $returnResult Then Return $success

Expand Down

0 comments on commit ff403e6

Please sign in to comment.