Skip to content

Commit 49bc54c

Browse files
committed
Use createStub not createMock
1 parent 21627bf commit 49bc54c

7 files changed

Lines changed: 8 additions & 8 deletions

tests/Command/BurndownCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class BurndownCommandTest extends \PHPUnit\Framework\TestCase
1010
{
1111
public function testConfigure(): void
1212
{
13-
$trello = $this->createMock('\TrelloCli\Client');
13+
$trello = $this->createStub('\TrelloCli\Client');
1414

1515
$command = new BurndownCommand($trello);
1616

tests/Command/JsonExportBoardCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class JsonExportBoardCommandTest extends \PHPUnit\Framework\TestCase
1010
{
1111
public function testConfigure(): void
1212
{
13-
$trello = $this->createMock('\TrelloCli\Client');
13+
$trello = $this->createStub('\TrelloCli\Client');
1414

1515
$command = new JsonExportBoardCommand($trello);
1616

tests/Command/LabelCardsCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class LabelCardsCommandTest extends \PHPUnit\Framework\TestCase
1010
{
1111
public function testConfigure(): void
1212
{
13-
$trello = $this->createMock('\TrelloCli\Client');
13+
$trello = $this->createStub('\TrelloCli\Client');
1414

1515
$command = new LabelCardsCommand($trello);
1616

tests/Command/ListBoardsCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ListBoardsCommandTest extends \PHPUnit\Framework\TestCase
1111
{
1212
public function testConfigure(): void
1313
{
14-
$trello = $this->createMock('\TrelloCli\Client');
14+
$trello = $this->createStub('\TrelloCli\Client');
1515

1616
$command = new ListBoardsCommand($trello);
1717

@@ -24,7 +24,7 @@ public function testConfigure(): void
2424

2525
public function testExecuteCanRenderWhatWeWant(): void
2626
{
27-
$client = $this->createMock('\TrelloCli\Client');
27+
$client = $this->createStub('\TrelloCli\Client');
2828
$client
2929
->method('getBoards')
3030
->willReturn([['name' => 'Films', 'closed' => false]]);

tests/Command/ListCardsCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ListCardsCommandTest extends \PHPUnit\Framework\TestCase
1010
{
1111
public function testConfigure(): void
1212
{
13-
$trello = $this->createMock('\TrelloCli\Client');
13+
$trello = $this->createStub('\TrelloCli\Client');
1414

1515
$command = new ListCardsCommand($trello);
1616

tests/Command/ListPeopleCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ListPeopleCommandTest extends \PHPUnit\Framework\TestCase
1010
{
1111
public function testConfigure(): void
1212
{
13-
$trello = $this->createMock('\TrelloCli\Client');
13+
$trello = $this->createStub('\TrelloCli\Client');
1414

1515
$command = new ListPeopleCommand($trello);
1616

tests/Command/SortCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class SortCommandTest extends \PHPUnit\Framework\TestCase
1010
{
1111
public function testConfigure(): void
1212
{
13-
$trello = $this->createMock('\TrelloCli\Client');
13+
$trello = $this->createStub('\TrelloCli\Client');
1414

1515
$command = new SortCommand($trello);
1616

0 commit comments

Comments
 (0)