chore: initialize project using ramsey/php-library-starter-kit
This commit is contained in:
commit
3d602ddd69
35 changed files with 1119 additions and 0 deletions
20
tests/ExampleTest.php
Normal file
20
tests/ExampleTest.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Danjones000\Test\Spy;
|
||||
|
||||
use Danjones000\Spy\Example;
|
||||
use Mockery\MockInterface;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
public function testGreet(): void
|
||||
{
|
||||
/** @var Example & MockInterface $example */
|
||||
$example = $this->mockery(Example::class);
|
||||
$example->shouldReceive('greet')->passthru();
|
||||
|
||||
$this->assertSame('Hello, Friends!', $example->greet('Friends'));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue