Magic __get function to dispatch a call to retrieve a private property.
public __get ( $key ) |
public function test_magic_get_method() { $customer = new Give_Customer('*****@*****.**'); $this->assertEquals('*****@*****.**', $customer->email); $this->assertTrue(is_wp_error($customer->__get('asdf'))); }