mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-23 23:04:25 +00:00
Tests: Move some utility classes to their own files.
Props Frank Klein. Fixes #37523. git-svn-id: https://develop.svn.wordpress.org/trunk@38285 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
29
tests/phpunit/includes/class-basic-object.php
Normal file
29
tests/phpunit/includes/class-basic-object.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
class Basic_Object {
|
||||
private $foo = 'bar';
|
||||
|
||||
public function __get( $name ) {
|
||||
return $this->$name;
|
||||
}
|
||||
|
||||
public function __set( $name, $value ) {
|
||||
return $this->$name = $value;
|
||||
}
|
||||
|
||||
public function __isset( $name ) {
|
||||
return isset( $this->$name );
|
||||
}
|
||||
|
||||
public function __unset( $name ) {
|
||||
unset( $this->$name );
|
||||
}
|
||||
|
||||
public function __call( $name, $arguments ) {
|
||||
return call_user_func_array( array( $this, $name ), $arguments );
|
||||
}
|
||||
|
||||
private function callMe() {
|
||||
return 'maybe';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user