From f75a3ee8658c184e1feff01a80671063a66005c9 Mon Sep 17 00:00:00 2001 From: avrahamappel Date: Tue, 15 Dec 2020 22:29:37 -0500 Subject: [PATCH] Add test for inheritance with depends --- tests/Features/DependsInheritance.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/Features/DependsInheritance.php diff --git a/tests/Features/DependsInheritance.php b/tests/Features/DependsInheritance.php new file mode 100644 index 00000000..cb7842c3 --- /dev/null +++ b/tests/Features/DependsInheritance.php @@ -0,0 +1,22 @@ +toBeTrue(); +}); + +it('uses correct parent class', function () { + expect(get_parent_class($this))->toEqual(InheritanceTest::class); + expect($this->foo())->toEqual('bar'); +})->depends('it is a test');