Skip to content

Commit c381f9d

Browse files
authored
3.1.1 release (#5686)
* Deprecated expectException * preparing 3.1.1 release
1 parent 01661dd commit c381f9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Codeception/Module/Asserts.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22
namespace Codeception\Module;
33

4+
use Codeception\Lib\Notification;
45
use Codeception\Module as CodeceptionModule;
56
use Codeception\Util\Shared\Asserts as SharedAsserts;
67

@@ -101,11 +102,13 @@ class Asserts extends CodeceptionModule
101102
* });
102103
* ```
103104
*
105+
* @deprecated Use expectThrowable() instead
104106
* @param $exception string or \Exception
105107
* @param $callback
106108
*/
107109
public function expectException($exception, $callback)
108110
{
111+
Notification::deprecate('Use expectThrowable() instead');
109112
$this->expectThrowable($exception, $callback);
110113
}
111114

0 commit comments

Comments
 (0)