
|
| PntAssert |
| PntTest |
| PntTestCase |
| CasePntGeneralFunctions |
| PntErrorTest |
| PntObjectTest |
| PntValueValidatorTest |
| Template |
|
| equals |
| fail |
| false |
| isEmpty |
| notEmpty |
| notNull |
| notSame |
| null |
| numeric |
| ofAnyType |
| ofType |
| preg_match |
| propertiesEqual |
| refSameObject |
| same |
| that |
| true |
|
<?php
// Copyright (c) MetaClass Groningen, 2003-2012
/** This class implements the assertions. Its interface is more
* extended then the PHPUnit compatible interface of PntTestCase .
* This class also can be used for assertions outside of testcases.
*
* All failures will be ignoored if global pntTestNotifier is not set.
* This alows you to put assettions in application code and only see the
* failures if you are actually testing.
* TODO: exit assertion methods ASAP if no pntTestNotifier and
* if continuing takes substantial time (for example to serialize objects and arrays)
*
* With gratitude to Peter van Rooijen, ( http://www.ensu.net/ )
* for lending us his idea of using static methods (originally class methods)
* for assertions, as well as for inpiration and comments
* @package pntUnit
*/
class PntAssert {
|
Copyright (c) MetaClass, 2003- . All rights reserved.
This code is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
Click here for a copy of the license or see http://www.gnu.org/licenses/ .
|
|