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

Commit

Permalink
remove specify (#56)
Browse files Browse the repository at this point in the history
* remove specify

* remove module codeception/specify
  • Loading branch information
edno committed Aug 16, 2021
1 parent 76effeb commit 1783f8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
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

0 comments on commit 1783f8d

Please sign in to comment.