diff --git a/tests/src/Content/Text/BBCodeTest.php b/tests/src/Content/Text/BBCodeTest.php
index fe37b91cd..2f9a244cc 100644
--- a/tests/src/Content/Text/BBCodeTest.php
+++ b/tests/src/Content/Text/BBCodeTest.php
@@ -116,12 +116,11 @@ class BBCodeTest extends MockedTest
public function testAutoLinking($data, $assertHTML)
{
$output = BBCode::convert($data);
+ $assert = '' . $data . '';
if ($assertHTML) {
- $assert = '' . $data . '';
+ $this->assertEquals($assert, $output);
} else {
- $assert = $data;
+ $this->assertNotEquals($assert, $output);
}
-
- $this->assertEquals($assert, $output);
}
}