You are here

private function SmileyFilterWebTestCase::runTests in Smiley 7

1 call to SmileyFilterWebTestCase::runTests()
SmileyFilterWebTestCase::testRegexSmilePositions in ./smiley.test
Tests for all possible positions of smileys.

File

./smiley.test, line 34
Tests for Smiley module.

Class

SmileyFilterWebTestCase
Web test for smiley module to test the main regex expression for all possible situations to make sure it always works properly.

Code

private function runTests($tests, $smileys) {
  foreach ($tests as $test) {
    foreach ($test as $text => $expected_text) {
      $this
        ->CheckSmileysWereReplaced($text, $expected_text, $smileys);
    }
  }
}