public function testCustomMethod() { $user = new UserUnit(); $value = $user->doSomething(); // assertions $this->assertEquals('something', $value); }