This commit is contained in:
aynsix
2020-05-13 12:34:39 +03:00
parent 2bde6b8804
commit 7228b43cf5
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ class PhraseaExceptionHandlerSubscriberTest extends \PhraseanetTestCase
$app['exception_handler']->disable(); $app['exception_handler']->disable();
$client = new Client($app); $client = new Client($app);
$this->setExpectedException('\Exception'); $this->setExpectedException(\Exception::class);
$client->request('GET', '/'); $client->request('GET', '/');
} }
} }

View File

@@ -8,7 +8,7 @@ use Alchemy\Phrasea\WorkerManager\Worker\Factory\WorkerFactoryInterface;
use Alchemy\Phrasea\WorkerManager\Worker\Resolver\TypeBasedWorkerResolver; use Alchemy\Phrasea\WorkerManager\Worker\Resolver\TypeBasedWorkerResolver;
use Alchemy\Phrasea\WorkerManager\Worker\WorkerInterface; use Alchemy\Phrasea\WorkerManager\Worker\WorkerInterface;
class TypeBasedWorkerResolverTest extends \PhraseanetTestCase class TypeBasedWorkerResolverTest extends \PHPUnit_Framework_TestCase
{ {
public function testClassImplements() public function testClassImplements()
{ {
@@ -69,7 +69,7 @@ class TypeBasedWorkerResolverTest extends \PhraseanetTestCase
$sut->addFactory(MessagePublisher::SUBDEF_CREATION_TYPE, $workerFactory); $sut->addFactory(MessagePublisher::SUBDEF_CREATION_TYPE, $workerFactory);
$this->expectException(\RuntimeException::class); $this->setExpectedException(\RuntimeException::class);
$sut->getWorker(MessagePublisher::WRITE_METADATAS_TYPE, ['mock-message']); $sut->getWorker(MessagePublisher::WRITE_METADATAS_TYPE, ['mock-message']);