Skip to content

Commit 7a20b9f

Browse files
committed
Implement CodeMashTestCase
1 parent 5b2114d commit 7a20b9f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/Unit/CodeMashTestCase.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Tests\Unit;
6+
7+
use CodeMash\Client;
8+
use PHPUnit\Framework\MockObject\MockObject;
9+
use PHPUnit\Framework\TestCase;
10+
11+
class CodeMashTestCase extends TestCase
12+
{
13+
/** @var Client|MockObject */
14+
protected $client;
15+
16+
protected function setUp(): void
17+
{
18+
parent::setUp();
19+
20+
$this->client = $this->getMockBuilder(Client::class)
21+
->disableOriginalConstructor()
22+
->onlyMethods(['request'])
23+
->getMock();
24+
}
25+
}

0 commit comments

Comments
 (0)