<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1729,6 +1729,20 @@ class Framework_ConstraintTest extends PHPUnit_Framework_TestCase
      */
     public function testConstraintStringMatches()
     {
+        $constraint = PHPUnit_Framework_Assert::matches('*%c*');
+        $this-&gt;assertFalse($constraint-&gt;evaluate('**'));
+        $this-&gt;assertTrue($constraint-&gt;evaluate('***'));
+        $this-&gt;assertEquals('matches PCRE pattern &quot;/^\*.\*$/s&quot;', $constraint-&gt;toString());
+        $this-&gt;assertEquals(1, count($constraint));
+    }
+
+    /**
+     * @covers PHPUnit_Framework_Constraint_StringMatches
+     * @covers PHPUnit_Framework_Assert::matches
+     * @covers PHPUnit_Framework_Constraint::count
+     */
+    public function testConstraintStringMatches2()
+    {
         $constraint = PHPUnit_Framework_Assert::matches('*%s*');
         $this-&gt;assertFalse($constraint-&gt;evaluate('**'));
         $this-&gt;assertTrue($constraint-&gt;evaluate('***'));
@@ -1741,7 +1755,7 @@ class Framework_ConstraintTest extends PHPUnit_Framework_TestCase
      * @covers PHPUnit_Framework_Assert::matches
      * @covers PHPUnit_Framework_Constraint::count
      */
-    public function testConstraintStringMatches2()
+    public function testConstraintStringMatches3()
     {
         $constraint = PHPUnit_Framework_Assert::matches('*%i*');
         $this-&gt;assertFalse($constraint-&gt;evaluate('**'));
@@ -1755,7 +1769,7 @@ class Framework_ConstraintTest extends PHPUnit_Framework_TestCase
      * @covers PHPUnit_Framework_Assert::matches
      * @covers PHPUnit_Framework_Constraint::count
      */
-    public function testConstraintStringMatches3()
+    public function testConstraintStringMatches4()
     {
         $constraint = PHPUnit_Framework_Assert::matches('*%d*');
         $this-&gt;assertFalse($constraint-&gt;evaluate('**'));
@@ -1769,7 +1783,7 @@ class Framework_ConstraintTest extends PHPUnit_Framework_TestCase
      * @covers PHPUnit_Framework_Assert::matches
      * @covers PHPUnit_Framework_Constraint::count
      */
-    public function testConstraintStringMatches4()
+    public function testConstraintStringMatches5()
     {
         $constraint = PHPUnit_Framework_Assert::matches('*%x*');
         $this-&gt;assertFalse($constraint-&gt;evaluate('**'));
@@ -1783,7 +1797,7 @@ class Framework_ConstraintTest extends PHPUnit_Framework_TestCase
      * @covers PHPUnit_Framework_Assert::matches
      * @covers PHPUnit_Framework_Constraint::count
      */
-    public function testConstraintStringMatches5()
+    public function testConstraintStringMatches6()
     {
         $constraint = PHPUnit_Framework_Assert::matches('*%f*');
         $this-&gt;assertFalse($constraint-&gt;evaluate('**'));</diff>
      <filename>PHPUnit/Tests/Framework/ConstraintTest.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>82bd0acd26236f1d35cfba2acbf6d42e73c72026</id>
    </parent>
  </parents>
  <author>
    <name>sb</name>
    <email>sb@c4a080f7-5c17-0410-a942-8af0f0140c7b</email>
  </author>
  <url>http://github.com/bkw/phpunit/commit/b301c8e4b06ab5ca1616969cdc6b7edcea8eaee0</url>
  <id>b301c8e4b06ab5ca1616969cdc6b7edcea8eaee0</id>
  <committed-date>2009-11-15T02:33:47-08:00</committed-date>
  <authored-date>2009-11-15T02:33:47-08:00</authored-date>
  <message>- Add missing test.

git-svn-id: svn://svn.phpunit.de/phpunit/phpunit/trunk@5341 c4a080f7-5c17-0410-a942-8af0f0140c7b</message>
  <tree>a2545804edd7eada9fc621d22204781e85c81fc1</tree>
  <committer>
    <name>sb</name>
    <email>sb@c4a080f7-5c17-0410-a942-8af0f0140c7b</email>
  </committer>
</commit>
