Skip to content

Commit 6258e89

Browse files
author
Gustavo Nieves
authored
Merge pull request #44 from TavoNiievez/master
Refactoring work for code quality
2 parents 4a4f006 + 0ec6411 commit 6258e89

15 files changed

Lines changed: 1053 additions & 560 deletions

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: php
22

33
php:
4-
- 7
54
- 7.1
65
- 7.2
6+
- 7.3
77

88
cache:
99
directories:

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66
{
77
"name": "Michael Bodnarchuk",
88
"email": "davert@codeception.com"
9+
},
10+
{
11+
"name": "Gustavo Nieves",
12+
"homepage": "https://medium.com/@ganieves"
913
}
1014
],
1115
"require": {
12-
"php": ">= 7.0",
13-
"phpunit/phpunit": "> 6.0",
14-
"codeception/phpunit-wrapper": ">6.0.16 <6.1.0 | ^6.7.0 | ^7.7.1 | ^8.0.4 | ^9.0.0"
16+
"php": ">= 7.1",
17+
"ext-dom": "*",
18+
"phpunit/phpunit": ">= 7.0",
19+
"codeception/phpunit-wrapper": "^7.8.0 | ^8.1.2 | ^9.0.2"
1520
},
1621
"autoload": {
1722
"files": ["src/Codeception/function.php"],
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace Codeception\Exception;
4+
5+
use InvalidArgumentException;
6+
7+
class InvalidVerifyException extends InvalidArgumentException
8+
{
9+
public function __construct($verifyName, $actual)
10+
{
11+
$message = sprintf(
12+
"%s type can't be used with %s verify.",
13+
gettype($actual),
14+
$verifyName
15+
);
16+
17+
parent::__construct($message);
18+
}
19+
}

0 commit comments

Comments
 (0)