use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\SupportStrategy\InstanceOfSupportStrategy;
use Symfony\Component\Workflow\Workflow;
class InstanceOfSupportStrategyTest extends TestCase
{ public function testSupportsIfClassInstance() { $strategy =
new InstanceOfSupportStrategy(Subject1::
class);
$this->
assertTrue($strategy->
supports($this->
createWorkflow(),
new Subject1()));
} public function testSupportsIfNotClassInstance() { $strategy =
new InstanceOfSupportStrategy(Subject2::
class);
$this->
assertFalse($strategy->
supports($this->
createWorkflow(),
new Subject1()));
} private function createWorkflow(): MockObject&Workflow
{