protected static function createMockByName($name) { $class = static::getMockableClass($name); return $class ? Mockery::mock($class) : Mockery::mock(); }