Skip to content

Commit

Permalink
Add test for magic_stripslashes(). Make sure it doesn't fail in PHP8.
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xo committed Feb 28, 2021
1 parent cd63662 commit 27cc2b8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/MagicStripslashesTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php declare(strict_types=1);

use PHPUnit\Framework\TestCase;

class MagicStripslashesTest extends TestCase
{
public function test_magic_striplashes()
{
$this->assertEquals('""\'\'', magic_stripslashes('""\'\''));
}
}

0 comments on commit 27cc2b8

Please sign in to comment.