2017 © Pedro Peláez
 

library doobie

Doobie ("do by") allows PHP @todo annotations to be extended with metadata to specify by which event the described action must have been taken.

image

bartfeenstra/doobie

Doobie ("do by") allows PHP @todo annotations to be extended with metadata to specify by which event the described action must have been taken.

  • Wednesday, May 21, 2014
  • by bartfeenstra
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Doobie

Build Status Coverage Status Latest Stable Version, (*1)

Doobie ("do by") allows @todo annotations to be extended with metadata to specify by which event the described action must have been taken., (*2)

Doobie was inspired by andyw8/do_by, which is specific to Ruby., (*3)

Usage

Any @todo annotation can contain a Doobie marker that is formatted like [doobie:type:expected_value], where type is the type of constraint that must be checked (such as php-version or datetime), and expected_value is the value the constraint type must have for the marker to become expired., (*4)

php-version

This built-in constraint type compares the expected and actual PHP versions. Use like [doobie:php-version:>=5.5]., (*5)

datetime

This built-in constraint type compares the expected and actual dates and times. Use like [doobie:datetime:2014-05-20 00:00 +0], (*6)

PHPUnit

In order to test all markers through PHPUnit, write a test case that instantiates one or more file finders (\BartFeenstra\Doobie\FileFinder\FileFinderInterface), parsers (\BartFeenstra\Doobie\Parser\ParserInterface), and constraint evaluators (\BartFeenstra\Doobie\Constraint\ConstriantEvaluatorInterface). The test case can then use \BartFeenstra\Doobie\PhpUnit\AssertTrait and $this->assertDoobieMarkers($file_finders, $parsers, $constraint_evaluators) to trigger test failures for expires markers., (*7)

The Versions

21/05 2014

dev-master

9999999-dev http://github.com/bartfeenstra/Doobie

Doobie ("do by") allows PHP @todo annotations to be extended with metadata to specify by which event the described action must have been taken.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires