-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPluginInterfaceTest.php
More file actions
38 lines (32 loc) · 1001 Bytes
/
PluginInterfaceTest.php
File metadata and controls
38 lines (32 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace WpOop\WordPress\Test\Unit\Plugin;
use Dhii\Package\PackageInterface;
use Dhii\Util\String\DescriptionAwareInterface;
use Dhii\Util\String\TitleAwareInterface;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use WpOop\WordPress\Plugin\PluginInterface as Subject;
class PluginInterfaceTest extends TestCase
{
/**
* @return Subject|MockObject
*/
protected function createSubject(): Subject
{
$mock = $this->getMockBuilder(Subject::class)
->getMock();
return $mock;
}
public function testInstantiation()
{
{
$subject = $this->createSubject();
}
{
$this->assertInstanceOf(Subject::class, $subject);
$this->assertInstanceOf(PackageInterface::class, $subject);
$this->assertInstanceOf(TitleAwareInterface::class, $subject);
$this->assertInstanceOf(DescriptionAwareInterface::class, $subject);
}
}
}