PHPUnit_Framework_Assert::getCount PHP Method

getCount() public static method

Return the current assertion count.
public static getCount ( ) : integer
return integer
    public static function getCount()
    {
        return self::$count;
    }

Usage Example

Esempio n. 1
0
 /**
  * Utilizes a dummy constraint to indicate that an assertion has happened.
  */
 public function testProcessObjectFreeze()
 {
     $assertionCount = PHPUnit_Framework_Assert::getCount();
     $this->client->processObjectFreeze();
     $newAssertionCount = PHPUnit_Framework_Assert::getCount();
     $this->assertGreaterThan($assertionCount, $newAssertionCount);
 }
All Usage Examples Of PHPUnit_Framework_Assert::getCount
PHPUnit_Framework_Assert