From 86d6d611ce1370f4ba73aed7b0e7acbb851b824a Mon Sep 17 00:00:00 2001 From: Petro Sokolnykov Date: Thu, 10 May 2018 01:16:22 +0300 Subject: [PATCH] add test for Content::button exception in phpunit 4.8 style --- .../YandexTurboPages/helpers/ContentButtonTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/sokolnikov911/YandexTurboPages/helpers/ContentButtonTest.php b/tests/sokolnikov911/YandexTurboPages/helpers/ContentButtonTest.php index d9e3e40..90f62ff 100644 --- a/tests/sokolnikov911/YandexTurboPages/helpers/ContentButtonTest.php +++ b/tests/sokolnikov911/YandexTurboPages/helpers/ContentButtonTest.php @@ -47,4 +47,12 @@ public function testBaseButton() formaction=\"" . $this->url . "\">" . $this->text . ""; $this->assertXmlStringEqualsXmlString($baseButton, $button); } + + /** + * @expectedException \UnexpectedValueException + */ + public function testButtonException() + { + Content::button($this->text); + } } \ No newline at end of file