From 56571874775a98bb0d6b718efb750b49e4c08bae Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 18 Oct 2020 16:47:38 +0300 Subject: [PATCH] feat(tests): fix tests for Flextype::getInstance() method #477 --- tests/Foundation/FlextypeTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Foundation/FlextypeTest.php b/tests/Foundation/FlextypeTest.php index 01e58b80..9ff92647 100644 --- a/tests/Foundation/FlextypeTest.php +++ b/tests/Foundation/FlextypeTest.php @@ -16,3 +16,11 @@ afterEach(function (): void { test('test getVersion() method', function () { $this->assertTrue(!Strings::create(flextype()->getVersion())->isEmpty()); }); + +test('test getInstance() method', function () { + $firstCall = Flextype::getInstance(); + $secondCall = Flextype::getInstance(); + + $this->assertInstanceOf(Flextype::class, $firstCall); + $this->assertSame($firstCall, $secondCall); +});