File manager - Edit - /usr/local/prospamfilter/vendor/codeception/codeception/tests/unit/Codeception/Command/GenerateEnvironmentTest.php
Back
<?php use Codeception\Util\Stub; require_once __DIR__ . DIRECTORY_SEPARATOR . 'BaseCommandRunner.php'; class GenerateEnvironmentTest extends BaseCommandRunner { protected function setUp() { $this->makeCommand('\Codeception\Command\GenerateEnvironment'); $this->config = [ 'class_name' => 'HobbitGuy', 'path' => 'tests/shire', 'paths' => ['envs' => 'tests/_envs','tests' => 'tests'], ]; } public function testCreated() { $this->execute(['env' => 'firefox']); $this->assertContains('firefox config was created in tests/_envs/firefox.yml', $this->output); $this->assertEquals('tests/_envs/firefox.yml', $this->filename); } public function testFailed() { $this->makeCommand('\Codeception\Command\GenerateEnvironment', false); $this->execute(['env' => 'firefox']); $this->assertContains('File tests/_envs/firefox.yml already exists', $this->output); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings