From 40231451badf97ee2dfc89402a0e4c9f2113ebe9 Mon Sep 17 00:00:00 2001 From: Ben Selby Date: Tue, 3 Mar 2026 20:47:24 +0000 Subject: [PATCH] Use createStub not createMock --- tests/Command/BurndownCommandTest.php | 2 +- tests/Command/JsonExportBoardCommandTest.php | 2 +- tests/Command/LabelCardsCommandTest.php | 2 +- tests/Command/ListBoardsCommandTest.php | 4 ++-- tests/Command/ListCardsCommandTest.php | 2 +- tests/Command/ListPeopleCommandTest.php | 2 +- tests/Command/SortCommandTest.php | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Command/BurndownCommandTest.php b/tests/Command/BurndownCommandTest.php index 2ecaafb..0434dc6 100644 --- a/tests/Command/BurndownCommandTest.php +++ b/tests/Command/BurndownCommandTest.php @@ -10,7 +10,7 @@ class BurndownCommandTest extends \PHPUnit\Framework\TestCase { public function testConfigure(): void { - $trello = $this->createMock('\TrelloCli\Client'); + $trello = $this->createStub('\TrelloCli\Client'); $command = new BurndownCommand($trello); diff --git a/tests/Command/JsonExportBoardCommandTest.php b/tests/Command/JsonExportBoardCommandTest.php index e36ae55..1a12f61 100644 --- a/tests/Command/JsonExportBoardCommandTest.php +++ b/tests/Command/JsonExportBoardCommandTest.php @@ -10,7 +10,7 @@ class JsonExportBoardCommandTest extends \PHPUnit\Framework\TestCase { public function testConfigure(): void { - $trello = $this->createMock('\TrelloCli\Client'); + $trello = $this->createStub('\TrelloCli\Client'); $command = new JsonExportBoardCommand($trello); diff --git a/tests/Command/LabelCardsCommandTest.php b/tests/Command/LabelCardsCommandTest.php index ad49503..436c92a 100644 --- a/tests/Command/LabelCardsCommandTest.php +++ b/tests/Command/LabelCardsCommandTest.php @@ -10,7 +10,7 @@ class LabelCardsCommandTest extends \PHPUnit\Framework\TestCase { public function testConfigure(): void { - $trello = $this->createMock('\TrelloCli\Client'); + $trello = $this->createStub('\TrelloCli\Client'); $command = new LabelCardsCommand($trello); diff --git a/tests/Command/ListBoardsCommandTest.php b/tests/Command/ListBoardsCommandTest.php index 8fafa29..aa746e0 100644 --- a/tests/Command/ListBoardsCommandTest.php +++ b/tests/Command/ListBoardsCommandTest.php @@ -11,7 +11,7 @@ class ListBoardsCommandTest extends \PHPUnit\Framework\TestCase { public function testConfigure(): void { - $trello = $this->createMock('\TrelloCli\Client'); + $trello = $this->createStub('\TrelloCli\Client'); $command = new ListBoardsCommand($trello); @@ -24,7 +24,7 @@ public function testConfigure(): void public function testExecuteCanRenderWhatWeWant(): void { - $client = $this->createMock('\TrelloCli\Client'); + $client = $this->createStub('\TrelloCli\Client'); $client ->method('getBoards') ->willReturn([['name' => 'Films', 'closed' => false]]); diff --git a/tests/Command/ListCardsCommandTest.php b/tests/Command/ListCardsCommandTest.php index 6822658..6b9500d 100644 --- a/tests/Command/ListCardsCommandTest.php +++ b/tests/Command/ListCardsCommandTest.php @@ -10,7 +10,7 @@ class ListCardsCommandTest extends \PHPUnit\Framework\TestCase { public function testConfigure(): void { - $trello = $this->createMock('\TrelloCli\Client'); + $trello = $this->createStub('\TrelloCli\Client'); $command = new ListCardsCommand($trello); diff --git a/tests/Command/ListPeopleCommandTest.php b/tests/Command/ListPeopleCommandTest.php index ff7ccdd..68b09b6 100644 --- a/tests/Command/ListPeopleCommandTest.php +++ b/tests/Command/ListPeopleCommandTest.php @@ -10,7 +10,7 @@ class ListPeopleCommandTest extends \PHPUnit\Framework\TestCase { public function testConfigure(): void { - $trello = $this->createMock('\TrelloCli\Client'); + $trello = $this->createStub('\TrelloCli\Client'); $command = new ListPeopleCommand($trello); diff --git a/tests/Command/SortCommandTest.php b/tests/Command/SortCommandTest.php index 41467f6..78d2de1 100644 --- a/tests/Command/SortCommandTest.php +++ b/tests/Command/SortCommandTest.php @@ -10,7 +10,7 @@ class SortCommandTest extends \PHPUnit\Framework\TestCase { public function testConfigure(): void { - $trello = $this->createMock('\TrelloCli\Client'); + $trello = $this->createStub('\TrelloCli\Client'); $command = new SortCommand($trello);