Skip to content

Commit

Permalink
Use expectedExceptionMessageRegExp to support *nix & Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ravage84 committed Dec 12, 2016
1 parent 1feaa49 commit 0d1e8e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/View/ViewTest.php
Expand Up @@ -900,7 +900,7 @@ public function testPrefixElement()
* Test loading inexistent view element
*
* @expectedException \Cake\View\Exception\MissingElementException
* @expectedExceptionMessage Element file "Element\non_existent_element.ctp" is missing
* @expectedExceptionMessageRegExp $Element file \"Element[\\|/]non_existent_element\.ctp\" is missing$
* @return void
*/
public function testElementInexistent()
Expand All @@ -912,7 +912,7 @@ public function testElementInexistent()
* Test loading inexistent plugin view element
*
* @expectedException \Cake\View\Exception\MissingElementException
* @expectedExceptionMessage Element file "test_plugin.Element\plugin_element.ctp" is missing
* @expectedExceptionMessageRegExp $Element file "test_plugin\.Element[\\|/]plugin_element\.ctp\" is missing$
* @return void
*/
public function testElementInexistentPluginElement()
Expand Down

0 comments on commit 0d1e8e7

Please sign in to comment.