mirror of
https://github.com/ysoftdevs/Theatrical-Players-Refactoring-Kata.git
synced 2026-07-10 14:52:54 +02:00
Replace deprecated method
- approveString has been deprecated in favour of verifyString
This commit is contained in:
@@ -10,7 +10,7 @@ use Theatrical\Invoice;
|
|||||||
|
|
||||||
final class StatementPrinterTest extends TestCase
|
final class StatementPrinterTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testCanPrintInvoice() : void
|
public function testCanPrintInvoice() : void
|
||||||
{
|
{
|
||||||
$plays = [
|
$plays = [
|
||||||
"hamlet" => new Play("Hamlet", "tragedy"),
|
"hamlet" => new Play("Hamlet", "tragedy"),
|
||||||
@@ -27,10 +27,10 @@ final class StatementPrinterTest extends TestCase
|
|||||||
$statementPrinter = new StatementPrinter();
|
$statementPrinter = new StatementPrinter();
|
||||||
$result = $statementPrinter->print($invoice, $plays);
|
$result = $statementPrinter->print($invoice, $plays);
|
||||||
|
|
||||||
Approvals::approveString($result);
|
Approvals::verifyString($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testNewPlayTypes() : void
|
public function testNewPlayTypes() : void
|
||||||
{
|
{
|
||||||
$plays = [
|
$plays = [
|
||||||
"henry-v" => new Play("Henry V", "history"),
|
"henry-v" => new Play("Henry V", "history"),
|
||||||
|
|||||||
Reference in New Issue
Block a user