tests/php/WebsiteTest.php
/**
     * Allow testing of protected/private methods on in the {@link Website} class
     *
     * @param $object
     * @param $method
     * @param array $parameters
     * @return mixed
     */
Allow testing of protected/private methods on in the  Website class
@param $object
@param $method
@param array $parameters
@return mixed
Allow testing of protected / private methods on in the Website class @param $object @param $method @param array $parameters @return mixed
public function invokeMethod(&$object, $method, $parameters = [])
    {
        $reflection = new ReflectionClass(get_class($object));
        $method = $reflection->getMethod($method);
        $method->setAccessible(true);
        return $method->invokeArgs($object, $parameters);
    }
public function invokeMethod ( & $ object , $ method , $ parameters = [ ] ) { $ reflection = new ReflectionClass ( get_class ( $ object ) ) ; $ method = $ reflection -> getMethod ( $ method ) ; $ method -> setAccessible ( true ) ; return $ method -> invokeArgs ( $ object , $ parameters ) ; }
Allow testing of protected/private methods on in the {@link Website} class
 @param $object
 @param $method
 @param array $parameters
 @return mixed
Allow testing of protected / private methods on in the { @link Website } class @param $object @param $method @param array $parameters @return mixed