Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct convention with public visibility

  • Loading branch information...
commit c20285952371ac1e87b2653724ea922830be3ff6 1 parent c6449f6
@shama shama authored
View
4 lib/Cake/Test/Case/Network/CakeRequestTest.php
@@ -808,7 +808,7 @@ public function testAddDetector() {
$_SERVER['HTTP_USER_AGENT'] = 'iPhone 3.0';
$this->assertTrue($request->isMobile());
- $request->addDetector('callme', array('env' => 'TEST_VAR', 'callback' => array($this, '_detectCallback')));
+ $request->addDetector('callme', array('env' => 'TEST_VAR', 'callback' => array($this, 'detectCallback')));
$request->addDetector('index', array('param' => 'action', 'value' => 'index'));
$request->params['action'] = 'index';
@@ -829,7 +829,7 @@ public function testAddDetector() {
*
* @return void
*/
- public function _detectCallback($request) {
+ public function detectCallback($request) {
return $request->return == true;
}
View
6 lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php
@@ -400,7 +400,7 @@ public function testInsert() {
$Fixture = new CakeTestFixtureTestFixture();
$this->criticDb->expects($this->atLeastOnce())
->method('insertMulti')
- ->will($this->returnCallback(array($this, '_insertCallback')));
+ ->will($this->returnCallback(array($this, 'insertCallback')));
$return = $Fixture->insert($this->criticDb);
$this->assertTrue(!empty($this->insertMulti));
@@ -424,7 +424,7 @@ public function testInsert() {
* @param string $values
* @return boolean true
*/
- public function _insertCallback($table, $fields, $values) {
+ public function insertCallback($table, $fields, $values) {
$this->insertMulti['table'] = $table;
$this->insertMulti['fields'] = $fields;
$this->insertMulti['values'] = $values;
@@ -440,7 +440,7 @@ public function testInsertStrings() {
$Fixture = new StringsTestFixture();
$this->criticDb->expects($this->atLeastOnce())
->method('insertMulti')
- ->will($this->returnCallback(array($this, '_insertCallback')));
+ ->will($this->returnCallback(array($this, 'insertCallback')));
$return = $Fixture->insert($this->criticDb);
$this->assertTrue($this->criticDb->fullDebug);
Please sign in to comment.
Something went wrong with that request. Please try again.