Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Test-driven-Development mit TYPO3

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Test-driven-Development mit TYPO3

Folien vom Workshop zu Test-driven-Development/Unit-Testing mit TYPO3 bei der SLUB Dresden im Mai 2016.

Avatar for Oliver Klee

Oliver Klee

May 11, 2016

More Decks by Oliver Klee

Other Decks in Programming

Transcript

  1. Die phpunit-Extension bringt alles Wichtige mit phpunit (TYPO3-Extension) PHPUnit (Composer-Paket)

    Testrunner (Back-end- Modul) Testrunner (Kommandozeilen- Modul) Testing-Framework für FE & DB
  2. Benutze aussagekräftige Unit-Test- Namen classCanBeInstantiated setTitleSetsTitle setSizeWithZeroThrowsException hasTitleForEmptyTitleReturnsFalse Benenne das

    Verhalten. Nenne die Vorbedingungen. Nenne die Methode. Benutze nicht „works“ oder „correctly“. measureFrubbleWorksCorrectly