Skip to content

Commit 6962365

Browse files
committed
Merge branch 'feature-count-shortcut' of github.com:amenk/phpunit into amenk-feature-count-shortcut
2 parents 56add1d + ed2eb77 commit 6962365

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PHPUnit/Framework/Assert.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2775,6 +2775,16 @@ public static function stringEndsWith($suffix)
27752775
return new PHPUnit_Framework_Constraint_StringEndsWith($suffix);
27762776
}
27772777

2778+
/**
2779+
* Returns a PHPUnit_Framework_Constraint_Count matcher object.
2780+
*
2781+
* @param int $count
2782+
* @return PHPUnit_Framework_Constraint_Count
2783+
*/
2784+
public static function arrayCount($count)
2785+
{
2786+
return new PHPUnit_Framework_Constraint_Count($count);
2787+
}
27782788
/**
27792789
* Fails a test with the given message.
27802790
*

0 commit comments

Comments
 (0)