Skip to content

Commit

Permalink
add test for Content::button exception in phpunit 4.8 style
Browse files Browse the repository at this point in the history
  • Loading branch information
sokolnikov911 committed May 9, 2018
1 parent 6c3d06c commit 86d6d61
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,12 @@ public function testBaseButton()
formaction=\"" . $this->url . "\">" . $this->text . "</button>";
$this->assertXmlStringEqualsXmlString($baseButton, $button);
}

/**
* @expectedException \UnexpectedValueException
*/
public function testButtonException()
{
Content::button($this->text);
}
}

0 comments on commit 86d6d61

Please sign in to comment.