Skip to content

Commit

Permalink
Added new test case
Browse files Browse the repository at this point in the history
  • Loading branch information
farisc0de committed Jan 15, 2022
1 parent 81915b9 commit 19c8f65
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/SanitizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public function testCheckIfIsEmptyWorks()
$this->assertEquals($bool, $expected);
}

public function testCallback()
public function testCallbackWithArgs()
{
$sanitizer = new Sanitization();

Expand All @@ -310,4 +310,17 @@ public function testCallback()

$this->assertEquals($bool, $expected);
}

public function testCallbackWitouthArgs()
{
$sanitizer = new Sanitization();

$bool = $sanitizer->callback(function () {
return true;
});

$expected = true;

$this->assertEquals($bool, $expected);
}
}

0 comments on commit 19c8f65

Please sign in to comment.