File: Net_LDAP2_TestBase.php

package info (click to toggle)
php-net-ldap2 2.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 904 kB
  • sloc: php: 3,175; xml: 888; sh: 98; makefile: 9
file content (12 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
<?php
class Net_LDAP2_TestBase extends \PHPUnit\Framework\TestCase
{
    public static function assertTrue($condition, string $message = ''): void
    {
        if ($condition instanceof Net_LDAP2_Error) {
            self::fail('Error: ' . $condition->getMessage());
        }
        parent::assertTrue($condition, $message);
    }
}
?>