Replace deprecated method

- approveString has been deprecated in favour of verifyString
This commit is contained in:
Colin DeCarlo
2020-02-09 11:09:31 -05:00
parent eadf7f1586
commit 2f2816b0f3
+3 -3
View File
@@ -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"),