From e63157944312860fb6bbf0be87943a8c9b1bc761 Mon Sep 17 00:00:00 2001 From: Olivier Laviale Date: Thu, 8 Aug 2024 00:44:22 +0200 Subject: [PATCH] Add FailingProvider --- lib/Provider/FailingProvider.php | 19 +++++++++++++++++++ tests/Provider/FailingProviderTest.php | 23 +++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 lib/Provider/FailingProvider.php create mode 100644 tests/Provider/FailingProviderTest.php diff --git a/lib/Provider/FailingProvider.php b/lib/Provider/FailingProvider.php new file mode 100644 index 0000000..521efb8 --- /dev/null +++ b/lib/Provider/FailingProvider.php @@ -0,0 +1,19 @@ +expectException(LogicException::class); + $this->expectExceptionMessageMatches("/Only warmed-up data is available/"); + + $sut->provide("foo"); + } +}