示例#1
0
 /**
  * Checks if all expected parameters and only these are set
  *
  * @param string[] $expectedAnnotations
  * @param ezcReflectionAnnotation[] $annotations
  * @param ezcTestCase $test
  */
 public static function expectedParams($expectedParams, $params, $test)
 {
     foreach ($params as $param) {
         $test->assertType('ezcReflectionParameter', $param);
         $test->assertContains($param->getName(), $expectedParams);
         self::deleteFromArray($param->getName(), $expectedParams);
     }
     $test->assertEquals(0, count($expectedParams));
 }