File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 22.DS_Store
33vendor
44composer.lock
5+ reports
Original file line number Diff line number Diff line change 2929 }
3030 },
3131 "scripts" : {
32- "test" : " phpunit"
32+ "test" : " phpunit --coverage-text --coverage-html reports/ "
3333 },
3434 "extra" : {
3535 "laravel" : {
Original file line number Diff line number Diff line change @@ -194,4 +194,18 @@ public function testGetQueueCanResolveWantedQueueNameOrReturnDefault()
194194 $ this ->assertEquals ($ this ->queueName , $ queue ->getQueue (null ));
195195 $ this ->assertEquals ('somequeue ' , $ queue ->getQueue ('somequeue ' ));
196196 }
197+
198+ public function testGetMnsCanReturnMnsAdapter ()
199+ {
200+ $ queue = new MnsQueue ($ this ->mnsAdapter , $ this ->waitSeconds );
201+ $ this ->assertInstanceOf (MnsAdapter::class, $ queue ->getMns ());
202+ }
203+
204+ public function testSizeShouldThrowException ()
205+ {
206+ $ queue = new MnsQueue ($ this ->mnsAdapter , $ this ->waitSeconds );
207+ $ this ->expectException (\Exception::class);
208+ $ this ->expectExceptionMessage ('The size method is not support for aliyun-mns ' );
209+ $ queue ->size ();
210+ }
197211}
You can’t perform that action at this time.
0 commit comments