Unittests for Core\descriptor\Validator\Constraint\Classes

Written during amsterdamPHP TestFest
I've written 4 Unit Tests
I left out HasSinglePackageWithSubpackageValidator and
HasSingleSubpackageValidator
Hi Mike,
Thanks for the tip! I saw how you corrected it, so now I know it for future times :-)
Marieke

Date: Sat, 26 Jul 2014 14:16:24 -0700
From: notifications@github.com
To: phpDocumentor2@noreply.github.com
CC: mbed@live.nl
Subject: Re: [phpDocumentor2] Unittests for Core\descriptor\Validator\Constraint\Classes (#1361)

In tests/unit/phpDocumentor/Plugin/Core/Descriptor/Validator/Constraints/Classes/HasSinglePackageTest.php:

> + *
> + * PHP Version 5.3
> + *
> + * @author    Mike van Riel <mike.vanriel@naenius.com>
> + * @copyright 2010-2012 Mike van Riel / Naenius (http://www.naenius.com)
> + * @license   http://www.opensource.org/licenses/mit-license.php MIT
> + * @link      http://phpdoc.org
> + */
> +
> +namespace phpDocumentor\Plugin\Core\Descriptor\Validator\Constraints\Classes;
> +
> +
> +/**
> + * Test class for \phpDocumentor\Plugin\Core\Descriptor\Validator\Constraints\Classes\HasSinglePackage.
> + *
> + * @covers phpDocumentor\Plugin\Core\Descriptor\Validator\Constraints\Classes\HasSinglePackage

Try not to use @covers on an entire class; this will give you false sense of completeness because the entire class is possibly marked as covered while only a portion was.


—
Reply to this email directly or view it on GitHub.