*
* Example call:
* @code
- * assert('Drupal\\Component\\Assertion\\Inspector::assertAllStrings($array)');
+ * assert(Inspector::assertAllStrings($array));
* @endcode
*
* @ingroup php_assert
* As an example, this assertion tests for the keys of a theme registry.
*
* @code
- * assert('Drupal\\Component\\Assertion\\Inspector::assertAllHaveKey(
- * $arrayToTest, "type", "theme path", "function", "template", "variables", "render element", "preprocess functions")');
+ * assert(Inspector::assertAllHaveKey(
+ * $arrayToTest, "type", "theme path", "function", "template", "variables", "render element", "preprocess functions"));
* @endcode
*
* Note: If a method requires certain keys to be present it will usually be
* Here are some examples:
* @code
* // Just test all are objects, like a cache.
- * assert('Drupal\\Component\\Assertion\\Inspector::assertAllObjects(
- * $collection');
+ * assert(Inspector::assertAllObjects($collection));
*
* // Test if traversable objects (arrays won't pass this)
- * assert('Drupal\\Component\\Assertion\\Inspector::assertAllObjects(
- * $collection', \'\\Traversable\');
+ * assert(Inspector::assertAllObjects($collection, '\\Traversable'));
*
* // Test for the Foo class or Bar\None interface
- * assert('Drupal\\Component\\Assertion\\Inspector::assertAllObjects(
- * $collection', \'\\Foo\', \'\\Bar\\None\'');
+ * assert(Inspector::assertAllObjects($collection, '\\Foo', '\\Bar\\None'));
* @endcode
*
* @param mixed $traversable