You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
571 B
25 lines
571 B
<?php
|
|
|
|
namespace TestBusinessClass;
|
|
|
|
use BusinessClass\IPrintQuestionStrategy;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class IPrintQuestionStrategyTest extends TestCase
|
|
{
|
|
/**
|
|
* @covers IPrintQuestionStrategy::printStrategy
|
|
*/
|
|
public function testPrintStrategy()
|
|
{
|
|
$strategy = new class implements IPrintQuestionStrategy {
|
|
public function printStrategy(): string
|
|
{
|
|
return '<div>Question</div>';
|
|
}
|
|
};
|
|
|
|
$this->assertEquals('<div>Question</div>', $strategy->printStrategy());
|
|
}
|
|
}
|