Skip to content

Commit 38c32f0

Browse files
Don't use phpunit annotations
1 parent 9742f39 commit 38c32f0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

tests/PusherFactoryTest.php

+7-9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
namespace Pusher\Tests\Laravel;
1515

16+
use InvalidArgumentException;
1617
use Pusher\Laravel\PusherFactory;
1718
use Pusher\Pusher;
1819

@@ -40,13 +41,12 @@ public function testMakeStandard()
4041
$this->assertInstanceOf(Pusher::class, $return);
4142
}
4243

43-
/**
44-
* @expectedException \InvalidArgumentException
45-
*/
4644
public function testMakeWithoutAuthKey()
4745
{
4846
$factory = $this->getPusherFactory();
4947

48+
$this->expectException(InvalidArgumentException::class);
49+
5050
$factory->make([
5151
'secret' => 'your-secret',
5252
'app_id' => 'your-app-id',
@@ -57,13 +57,12 @@ public function testMakeWithoutAuthKey()
5757
]);
5858
}
5959

60-
/**
61-
* @expectedException \InvalidArgumentException
62-
*/
6360
public function testMakeWithoutAppId()
6461
{
6562
$factory = $this->getPusherFactory();
6663

64+
$this->expectException(InvalidArgumentException::class);
65+
6766
$factory->make([
6867
'auth_key' => 'your-auth-key',
6968
'secret' => 'your-secret',
@@ -74,13 +73,12 @@ public function testMakeWithoutAppId()
7473
]);
7574
}
7675

77-
/**
78-
* @expectedException \InvalidArgumentException
79-
*/
8076
public function testMakeWithoutSecret()
8177
{
8278
$factory = $this->getPusherFactory();
8379

80+
$this->expectException(InvalidArgumentException::class);
81+
8482
$factory->make([
8583
'auth_key' => 'your-auth-key',
8684
'app_id' => 'your-app-id',

0 commit comments

Comments
 (0)