Archivo de la etiqueta: unidad de prueba

Is there a way to have multiple phpt tests in one file?

Is there a way to have multiple phpt tests in one file?
I found instructions and examples to have many lines of output, but that’s not the same:
http://qa.php.net/sample_tests/sample001.phpSigue leyendo

Etiquetado , , | Deja un comentario

PHP – How do I generate strings with control characters or binary data?

For testing purposes I need strings such as:

"testx00string"

I would like to loop over the control characters (00-1F) and generate the strings automatically so I don’t have to clutter my code with 31 lines like this but don’t know Sigue leyendo

Etiquetado , , | 1 comentario

Netbeans “no tests executed

I have a php project with unit tests included. I use Netbeans for development and would like to have phpunit intergration in my IDE. If I run phpunit from the commandline, it is working. If I press Alt+F6 to runSigue leyendo

Etiquetado , , , | 1 comentario

Pruebas unitarias con el marco de CodeIgniter

Estoy tratando de probar la unidad de las funciones dentro de un sitio web desarrollado. Es mi primera vez, así que estoy teniendo problemas grandes. I have tried understanding this testing but how do I implement it? I have read and understood itSigue leyendo

Etiquetado , , , | Deja un comentario

Simple prueba vs PHPUnit

I was wondering if anyone that have experience in both these stuff can shed some light on the importante… difference between the two, en su caso?
Any specific strength of each that makes it suitable for any specific case? Sigue leyendo

Etiquetado , , , | 2 comentarios

¿Por qué el conjunto de datos duplicados mantener

Al trabajar con PHP ,conexión de manejo es con base de datos (MySQL)

$result = mysql_query('select * from products');
$row = mysql_fetch_array($result);

And yesterday founded out that array $row… had Duplicate data within.
First you have Data’s selected from database arranged in Indexes like Sigue leyendo

Etiquetado , , , | 2 comentarios

What does PHPUnit Strict mode do?

I am wondering about whatstrict mode is in PHPUnit” ?
por ejemplo,:

phpunit --strict

or in phpunit.xml

<phpunit strict="true">

I turned it on just to try it and my tests started failing with

PHP_Invoker_TimeoutException: Execution aborted after 1 second

Sigue leyendo

Etiquetado , , | 1 comentario

How do I run multiple versions of PHPUnit on the same machine?

I’m using Zend Framework for some projects and want to build up PHPUnit test suites for them. Desafortunadamente, Zend Framework in it’s current version (1.11.x) only supports PHPUnit 3.5. Al mismo tiempo, I would also like to start workingSigue leyendo

Etiquetado , , | 1 comentario

ZF- PHPUnit – mejor manera de burlarse de / probar $ this->getRequest()->getParam('Controller')

PHPUnit – Zend Framework
¿cuál es la mejor manera de burlarse de / la forma de probar el código
$esta->getRequest()->getParam(‘controlador)
en un ayudante de acción de un controlador?
(o cualquier otro parámetro o que la materia como todo está relacionado)
I’m guessing I need to mock the requestSigue leyendo

Etiquetado , , , | Deja un comentario

No pruebe los grupos( Apoyo PHPUnit @ grupo de anotación) funciones de la clase se extiende desde Yii en Netbeans

Actual tengo un problema con Yii, cuando había con “@ Grupo de anotación” ( apoyo por PHPUnit… ) to test a groups function in my class extends from Yii.
Que había configurado como una guía en el foro de Yu (NetBeans IDE y los proyectos de Yii). Sigue leyendo

Etiquetado , , , , | Deja un comentario
9 páginas