bubasuma\simplechat\tests\unit\fixtures\providers\Avatar::avatar PHP Method

avatar() public method

public avatar ( )
    public function avatar()
    {
        $path = __DIR__ . '/../../../../assets/img/avatars';
        if (null === $this->_container) {
            $this->_container = array_map(function ($file) {
                return basename($file);
            }, FileHelper::findFiles($path));
        }
        return $this->generator->randomElement($this->_container);
    }
Avatar