assertNotContainsOnly() public static method

Asserts that a haystack does not contain only values of a given type.
public static assertNotContainsOnly ( string $type, mixed $haystack, boolean $isNativeType = null, string $message = '' )
$type string
$haystack mixed
$isNativeType boolean
$message string
Example #1
0
/**
 * Asserts that a haystack does not contain only values of a given type.
 *
 * @param  string  $type
 * @param  mixed   $haystack
 * @param  boolean $isNativeType
 * @param  string  $message
 * @since  Method available since Release 3.1.4
 */
function assertNotContainsOnly($type, $haystack, $isNativeType = NULL, $message = '')
{
    return PHPUnit_Framework_Assert::assertNotContainsOnly($type, $haystack, $isNativeType, $message);
}
Example #2
0
 public function notContainsOnly($type, $isNativeType = NULL)
 {
     a::assertNotContainsOnly($type, $this->actual, $isNativeType, $this->description);
 }
Example #3
0
 public function toContainType($type)
 {
     if ($this->negate) {
         a::assertNotContainsOnly($type, $this->actual);
     } else {
         a::assertContainsOnly($type, $this->actual);
     }
 }
Example #4
0
 /**
  * Expect that a haystack does not contain only values of a given type.
  *
  * @param string $type
  * @param bool $isNativeType
  * @param string $message
  *
  * @return Expect
  */
 public function notToContainOnly($type, $isNativeType = null, $message = '')
 {
     Assert::assertNotContainsOnly($type, $this->value, $isNativeType, $message);
     return $this;
 }