php - What does PHPUnit's @ticket annotation do? -


i've been trying find out @ticket annotation in phpunit:

/** *  @ticket *  @return bool */ public function annotationtest() {     return true; } 

i use linking function ticket in our ticketing software, i'm afraid there might different purpose intended it.

there entry in docs (link), has no content. i've been trying find out more searching online, although can't seem find answer it. must have purpose, assume?

what @ticket annotation for?

it's used phpunit/phpunit-ticketlistener-jira package, allows tests interact jira's api. obvious use case (to me @ least) automatically re-open ticket when test failed.

it's been removed phpunit 6 (see https://github.com/sebastianbergmann/phpunit/commit/c9f8fe11fb459e51d37fcf629e0450307b19c362), still functional of v5.

it possible write custom test listener used similar logic, if wanted integrate task tracker/etc. https://phpunit.de/manual/5.7/en/appendixes.configuration.html#appendixes.configuration.test-listeners


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -