Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creando la configuración Básica para la ejecución de tests con phpunit #249

Closed
wants to merge 5 commits into from
Closed

Conversation

manuelj555
Copy link
Contributor

Actualmente se crearon dos test, el del Helper Tag y el de la lib Session.

Para el test de Tag se marcó uno de los tests como skiped debido a un bug que se encontró en el método Tag::create y es una condición que si pasa, igual se ejecuta el código posterior al if:

    public static function create($tag, $content = NULL, $attrs = NULL)
    {
        if (is_array($attrs)) {
            $attrs = self::getAttrs($attrs);
        }

        if (is_null($content)) {
            echo "<$tag $attrs />";
        }
        // Este echo siempre se ejecuta actualmemte, hay que pasarlo a un else del if.
        echo "<$tag $attrs>$content</$tag>";
    }

Si es posible hacer el ajuste del método en este mismo pull, con gusto lo subo.

Quedo atento!

Se crea la primera clase de tests SessionTest.php
Uno de los test se ha marcado como skiped, mientras se corrige un error en el método Tag::create
Se ajustan las cabeceras de los test para que contengan la info del fw
Por ahora solo de algunos métodos más usados, img, link, linkAction, ...
@manuelj555 manuelj555 closed this Jun 21, 2016
@manuelj555 manuelj555 deleted the 1.0-dev-tests branch March 31, 2017 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant