Skip to content

Commit

Permalink
remove forgotten text/fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
saeideng committed Sep 24, 2017
1 parent 69e70d8 commit 69f26e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Controller/Controller.php
Expand Up @@ -343,7 +343,7 @@ public function __get($name)
];
if (isset($deprecated[$name])) {
$method = $deprecated[$name];
deprecationWarning(sprintf('aaaaController::$%s is deprecated. Use $this->viewBuilder()->%s() instead.', $name, $method));
deprecationWarning(sprintf('Controller::$%s is deprecated. Use $this->viewBuilder()->%s() instead.', $name, $method));

return $this->viewBuilder()->{$method}();
}
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Controller/ControllerTest.php
Expand Up @@ -1115,7 +1115,7 @@ public function testDeprecatedViewProperty($property, $getter, $setter, $value)
* @param mixed $value Value to be set
* @return void
* @expectedException PHPUnit\Framework\Error\Deprecated
* @expectedExceptionMessageRegExp /Controller::\$\w+ is deprecated(.*)/
* @expectedExceptionMessageRegExp /^Controller::\$\w+ is deprecated(.*)/
* @dataProvider deprecatedViewPropertyProvider
*/
public function testDeprecatedViewPropertySetterMessage($property, $getter, $setter, $value)
Expand All @@ -1136,7 +1136,7 @@ public function testDeprecatedViewPropertySetterMessage($property, $getter, $set
* @param mixed $value Value to be set
* @return void
* @expectedException PHPUnit\Framework\Error\Deprecated
* @expectedExceptionMessageRegExp /Controller::\$\w+ is deprecated(.*)/
* @expectedExceptionMessageRegExp /^Controller::\$\w+ is deprecated(.*)/
* @dataProvider deprecatedViewPropertyProvider
*/
public function testDeprecatedViewPropertyGetterMessage($property, $getter, $setter, $value)
Expand Down

0 comments on commit 69f26e4

Please sign in to comment.