123456789101112131415161718192021222324252627282930 |
- <?php
- class ExecutorTest extends \PHPUnit_Framework_TestCase
- {
- /**
- * @dataProvider valuesProvider
- */
- public function testRun($returnValue)
- {
- $expected = $returnValue;
- $executor = new \Codeception\Step\Executor(function () use ($returnValue) {
- return $returnValue;
- });
- $actual = $executor->run();
- $this->assertEquals($expected, $actual);
- }
- /**
- * @return array
- */
- public function valuesProvider()
- {
- return array(
- array(true),
- array(false),
- );
- }
- }
|