diff --git a/tests/Alchemy/Tests/Phrasea/Core/Event/Subscriber/PhraseaExceptionHandlerSubscriberTest.php b/tests/Alchemy/Tests/Phrasea/Core/Event/Subscriber/PhraseaExceptionHandlerSubscriberTest.php index 00889cc7ca..29b9e45b50 100644 --- a/tests/Alchemy/Tests/Phrasea/Core/Event/Subscriber/PhraseaExceptionHandlerSubscriberTest.php +++ b/tests/Alchemy/Tests/Phrasea/Core/Event/Subscriber/PhraseaExceptionHandlerSubscriberTest.php @@ -52,7 +52,7 @@ class PhraseaExceptionHandlerSubscriberTest extends \PhraseanetTestCase $app['exception_handler']->disable(); $client = new Client($app); - $this->setExpectedException('\Exception'); + $this->setExpectedException(\Exception::class); $client->request('GET', '/'); } } diff --git a/tests/Alchemy/Tests/Phrasea/WorkerManager/Worker/Resolver/TypeBasedWorkerResolverTest.php b/tests/Alchemy/Tests/Phrasea/WorkerManager/Worker/Resolver/TypeBasedWorkerResolverTest.php index dcc531bead..8e4cd6e819 100644 --- a/tests/Alchemy/Tests/Phrasea/WorkerManager/Worker/Resolver/TypeBasedWorkerResolverTest.php +++ b/tests/Alchemy/Tests/Phrasea/WorkerManager/Worker/Resolver/TypeBasedWorkerResolverTest.php @@ -8,7 +8,7 @@ use Alchemy\Phrasea\WorkerManager\Worker\Factory\WorkerFactoryInterface; use Alchemy\Phrasea\WorkerManager\Worker\Resolver\TypeBasedWorkerResolver; use Alchemy\Phrasea\WorkerManager\Worker\WorkerInterface; -class TypeBasedWorkerResolverTest extends \PhraseanetTestCase +class TypeBasedWorkerResolverTest extends \PHPUnit_Framework_TestCase { public function testClassImplements() { @@ -69,7 +69,7 @@ class TypeBasedWorkerResolverTest extends \PhraseanetTestCase $sut->addFactory(MessagePublisher::SUBDEF_CREATION_TYPE, $workerFactory); - $this->expectException(\RuntimeException::class); + $this->setExpectedException(\RuntimeException::class); $sut->getWorker(MessagePublisher::WRITE_METADATAS_TYPE, ['mock-message']);