Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

remove specify #56

Merged
merged 2 commits into from
Aug 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"phpmd/phpmd" : "@stable",
"squizlabs/php_codesniffer": "3.*",
"codeception/mockery-module": "^0.4.0",
"codeception/assert-throws": "^1.1",
"codeception/specify": "^1.4"
"codeception/assert-throws": "^1.1"
},
"autoload": {
"psr-4": {
Expand Down
29 changes: 10 additions & 19 deletions tests/unit/GherkinParamExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
class GherkinParamExceptionTest extends \Codeception\Test\Unit
{
use \Codeception\AssertThrows;
use \Codeception\Specify;

/**
* @var \UnitTester
Expand All @@ -33,30 +32,22 @@ protected function _after(): void

public function testGetValueFromParamWithExceptionFromConfig()
{
$this->specify(
'getValueFromConfig', function () {
$this->assertThrows(
ExtensionException::class, function () {
$this
->module
->getValueFromParam('{{config:undefinedConfig}}');
}
);
$this->assertThrows(
ExtensionException::class, function () {
$this
->module
->getValueFromParam('{{config:undefinedConfig}}');
}
);
}

public function testGetValueFromParamWithExceptionFromArray()
{
$this->specify(
'getValueFromArray', function () {
$this->assertThrows(
ExtensionException::class, function () {
$this
->module
->getValueFromParam('{{undefinedArray[4]}}');
}
);
$this->assertThrows(
ExtensionException::class, function () {
$this
->module
->getValueFromParam('{{undefinedArray[4]}}');
}
);
}
Expand Down