Enviar búsqueda
Cargar
How to write PHPT tests
•
0 recomendaciones
•
810 vistas
S
Scott MacVicar
Seguir
Tecnología
Denunciar
Compartir
Denunciar
Compartir
1 de 20
Descargar ahora
Descargar para leer sin conexión
Recomendados
Alternative Databases
Alternative Databases
Scott MacVicar
PHP 5.3
PHP 5.3
Scott MacVicar
TRON - Mt KFest 2009
TRON - Mt KFest 2009
aft3rmath
Coping with Cyber Monday
Coping with Cyber Monday
Helgi Þormar Þorbjörnsson
Caching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and Profiling
Scott MacVicar
Caching for Cash: Caching
Caching for Cash: Caching
Scott MacVicar
Caching for Cash - Part 1
Caching for Cash - Part 1
Helgi Þormar Þorbjörnsson
PHP 5.3 + Windows
PHP 5.3 + Windows
Scott MacVicar
Recomendados
Alternative Databases
Alternative Databases
Scott MacVicar
PHP 5.3
PHP 5.3
Scott MacVicar
TRON - Mt KFest 2009
TRON - Mt KFest 2009
aft3rmath
Coping with Cyber Monday
Coping with Cyber Monday
Helgi Þormar Þorbjörnsson
Caching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and Profiling
Scott MacVicar
Caching for Cash: Caching
Caching for Cash: Caching
Scott MacVicar
Caching for Cash - Part 1
Caching for Cash - Part 1
Helgi Þormar Þorbjörnsson
PHP 5.3 + Windows
PHP 5.3 + Windows
Scott MacVicar
PHPNW Test Fest Pre-presentation
PHPNW Test Fest Pre-presentation
Lorna Mitchell
intl me this, intl me that
intl me this, intl me that
Andrei Zmievski
Building a desktop app with HTTP::Engine, SQLite and jQuery
Building a desktop app with HTTP::Engine, SQLite and jQuery
Tatsuhiko Miyagawa
Taming the Deployment Beast
Taming the Deployment Beast
Chris Cornutt
Acceptance testing in php with Codeception - Techmeetup Edinburgh
Acceptance testing in php with Codeception - Techmeetup Edinburgh
Engineor
LMP1 IO and Filesystems=========================Welcome .docx
LMP1 IO and Filesystems=========================Welcome .docx
manningchassidy
関西アンカンファレンス PHP ではじめるテストコード
関西アンカンファレンス PHP ではじめるテストコード
Shinya Ohyanagi
Unit Test Your Database! (PgCon 2009)
Unit Test Your Database! (PgCon 2009)
PostgreSQL Experts, Inc.
LTP
LTP
Caspar Zhang
MacRuby - When objective-c and Ruby meet
MacRuby - When objective-c and Ruby meet
Matt Aimonetti
Codeception: introduction to php testing (v2 - Aberdeen php)
Codeception: introduction to php testing (v2 - Aberdeen php)
Engineor
Ruby & Machine Vision - Talk at Sheffield Hallam University Feb 2009
Ruby & Machine Vision - Talk at Sheffield Hallam University Feb 2009
Jan Wedekind
Hacking Selenium @ JSConf
Hacking Selenium @ JSConf
hugs
Introduction to PHP
Introduction to PHP
Amit Seal Ami
Design Patterns - LFM and POM
Design Patterns - LFM and POM
John Staveley
Doctrine 2: Enterprise Persistence Layer for PHP
Doctrine 2: Enterprise Persistence Layer for PHP
Jonathan Wage
Caching, Memcached And Rails
Caching, Memcached And Rails
guestac752c
Linq Refresher
Linq Refresher
buildmaster
Codeception: introduction to php testing
Codeception: introduction to php testing
Engineor
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
LoriGlavin3
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
LoriGlavin3
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Precisely
Más contenido relacionado
Similar a How to write PHPT tests
PHPNW Test Fest Pre-presentation
PHPNW Test Fest Pre-presentation
Lorna Mitchell
intl me this, intl me that
intl me this, intl me that
Andrei Zmievski
Building a desktop app with HTTP::Engine, SQLite and jQuery
Building a desktop app with HTTP::Engine, SQLite and jQuery
Tatsuhiko Miyagawa
Taming the Deployment Beast
Taming the Deployment Beast
Chris Cornutt
Acceptance testing in php with Codeception - Techmeetup Edinburgh
Acceptance testing in php with Codeception - Techmeetup Edinburgh
Engineor
LMP1 IO and Filesystems=========================Welcome .docx
LMP1 IO and Filesystems=========================Welcome .docx
manningchassidy
関西アンカンファレンス PHP ではじめるテストコード
関西アンカンファレンス PHP ではじめるテストコード
Shinya Ohyanagi
Unit Test Your Database! (PgCon 2009)
Unit Test Your Database! (PgCon 2009)
PostgreSQL Experts, Inc.
LTP
LTP
Caspar Zhang
MacRuby - When objective-c and Ruby meet
MacRuby - When objective-c and Ruby meet
Matt Aimonetti
Codeception: introduction to php testing (v2 - Aberdeen php)
Codeception: introduction to php testing (v2 - Aberdeen php)
Engineor
Ruby & Machine Vision - Talk at Sheffield Hallam University Feb 2009
Ruby & Machine Vision - Talk at Sheffield Hallam University Feb 2009
Jan Wedekind
Hacking Selenium @ JSConf
Hacking Selenium @ JSConf
hugs
Introduction to PHP
Introduction to PHP
Amit Seal Ami
Design Patterns - LFM and POM
Design Patterns - LFM and POM
John Staveley
Doctrine 2: Enterprise Persistence Layer for PHP
Doctrine 2: Enterprise Persistence Layer for PHP
Jonathan Wage
Caching, Memcached And Rails
Caching, Memcached And Rails
guestac752c
Linq Refresher
Linq Refresher
buildmaster
Codeception: introduction to php testing
Codeception: introduction to php testing
Engineor
Similar a How to write PHPT tests
(19)
PHPNW Test Fest Pre-presentation
PHPNW Test Fest Pre-presentation
intl me this, intl me that
intl me this, intl me that
Building a desktop app with HTTP::Engine, SQLite and jQuery
Building a desktop app with HTTP::Engine, SQLite and jQuery
Taming the Deployment Beast
Taming the Deployment Beast
Acceptance testing in php with Codeception - Techmeetup Edinburgh
Acceptance testing in php with Codeception - Techmeetup Edinburgh
LMP1 IO and Filesystems=========================Welcome .docx
LMP1 IO and Filesystems=========================Welcome .docx
関西アンカンファレンス PHP ではじめるテストコード
関西アンカンファレンス PHP ではじめるテストコード
Unit Test Your Database! (PgCon 2009)
Unit Test Your Database! (PgCon 2009)
LTP
LTP
MacRuby - When objective-c and Ruby meet
MacRuby - When objective-c and Ruby meet
Codeception: introduction to php testing (v2 - Aberdeen php)
Codeception: introduction to php testing (v2 - Aberdeen php)
Ruby & Machine Vision - Talk at Sheffield Hallam University Feb 2009
Ruby & Machine Vision - Talk at Sheffield Hallam University Feb 2009
Hacking Selenium @ JSConf
Hacking Selenium @ JSConf
Introduction to PHP
Introduction to PHP
Design Patterns - LFM and POM
Design Patterns - LFM and POM
Doctrine 2: Enterprise Persistence Layer for PHP
Doctrine 2: Enterprise Persistence Layer for PHP
Caching, Memcached And Rails
Caching, Memcached And Rails
Linq Refresher
Linq Refresher
Codeception: introduction to php testing
Codeception: introduction to php testing
Último
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
LoriGlavin3
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
LoriGlavin3
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Precisely
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Fwdays
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Commit University
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Addepto
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
MounikaPolabathina
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Lonnie McRorey
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Lars Bell
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
LoriGlavin3
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
Curtis Poe
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Alan Dix
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Sergiu Bodiu
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
LoriGlavin3
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
LoriGlavin3
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
LoriGlavin3
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
Último
(20)
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
How to write PHPT tests
1.
Writing PHP Tests
PHPNW TestFest 2009 Wednesday, 27 May 2009
2.
Goals
Increase test coverage in PHP Win an elePHPant Have Fun Beat London Cheat if we have to Wednesday, 27 May 2009
3.
Preparation
Grab gcc, autotools, flex-old, bison Make your directory ~/testfest Wednesday, 27 May 2009
4.
Snapshot
CVS Checkout Snapshot (snaps.php.net) Windows Snapshot (windows.php.net/snapshots/) Wednesday, 27 May 2009
5.
Windows
run-tests.php PHP 5.3 http://short.ie/yui3db PHP 5.2 http://short.ie/zm5vwb Relax Wednesday, 27 May 2009
6.
Building
cd ~/testfest ./configure --disable-all --enable-spl make / make -j3 Wednesday, 27 May 2009
7.
Checking it worked
sapi/cli/php -v make test (takes a while) Submit a report Wednesday, 27 May 2009
8.
Running Selective
Tests run run-tests.php manually set TEST_PHP_EXECUTABLE Wednesday, 27 May 2009
9.
Demo Wednesday, 27 May
2009
10.
What makes a
phpt? Small Collection of PHP Scripts Separated by section markers TEST, FILE, EXPECT Wednesday, 27 May 2009
11.
phpt bits
--TEST-- Description of the test --FILE-- Contents is passed to PHP --EXPECT-- The expected output Wednesday, 27 May 2009
12.
A simple phpt Wednesday,
27 May 2009
13.
Other sections
--CREDITS-- --SKIPIF-- --EXPECTF-- Wednesday, 27 May 2009
14.
Sample Test Wednesday, 27
May 2009
15.
SPL
Standard PHP Library Solves Common Problems Data structures, algorithms, iterators Wednesday, 27 May 2009
16.
SPL Documentation
http://php.net/~helly/ http://uk2.php.net/spl Wednesday, 27 May 2009
17.
Our Goals
Write a simple basic test Write a test for SPLFixedArray, SPLDoublyLinkedList Look at some iterator tests Wednesday, 27 May 2009
18.
SVN Checkout
SVN Command Line Tortoise SVN Versions on OSX http://testfest.php.net/repos/ testfest/NorthWestUG/ Wednesday, 27 May 2009
19.
Run test
SVN: http://testfest.php.net/repos/ testfest/NorthWestUG/ Linux: export TEST_PHP_EXECUTABLE=/path/ to/checkout/sapi/cli/php Windows: set TEST_PHP_EXECUTABLE=c:path tophp.exe php run-tests.php /path/to/svntestfest/ ext/spl/tests Wednesday, 27 May 2009
20.
URLs
http://qa.php.net/ phpt_details.php http://qa.php.net/write-test.php http://uk.php.net/spl Wednesday, 27 May 2009
Descargar ahora