This commit is contained in:
2020-10-06 14:27:47 +07:00
commit 586be80cf6
16613 changed files with 3274099 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<?php
use \Codeception\Step\ConditionalAssertion;
class ConditionalAssertionTest extends \PHPUnit\Framework\TestCase
{
public function testCantSeeToString()
{
$assertion = new ConditionalAssertion('dontSee', ['text']);
$this->assertEquals('cant see "text"', $assertion->toString(200));
}
}

View File

@@ -0,0 +1,30 @@
<?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),
);
}
}