You are here

public function JavascriptEvaluationTest::provideEvaluatedScript in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/driver-testsuite/tests/Js/JavascriptEvaluationTest.php \Behat\Mink\Tests\Driver\Js\JavascriptEvaluationTest::provideEvaluatedScript()

File

vendor/behat/mink/driver-testsuite/tests/Js/JavascriptEvaluationTest.php, line 72

Class

JavascriptEvaluationTest

Namespace

Behat\Mink\Tests\Driver\Js

Code

public function provideEvaluatedScript() {
  return array(
    array(
      '1 + 1',
    ),
    array(
      '1 + 1;',
    ),
    array(
      'return 1 + 1',
    ),
    array(
      'return 1 + 1;',
    ),
    array(
      'function () {return 1+1;}()',
    ),
    array(
      '(function () {return 1+1;})()',
    ),
    array(
      'return function () { return 1+1;}()',
    ),
    array(
      'return (function () {return 1+1;})()',
    ),
  );
}