assertNotInternalType() public static method

Asserts that a variable is not of a given type.
public static assertNotInternalType ( string $expected, mixed $actual, string $message = '' )
$expected string
$actual mixed
$message string
Example #1
0
/**
 * Asserts that a variable is not of a given type.
 *
 * @param string $expected
 * @param mixed  $actual
 * @param string $message
 * @since Method available since Release 3.5.0
 */
function assertNotInternalType($expected, $actual, $message = '')
{
    return PHPUnit_Framework_Assert::assertNotInternalType($expected, $actual, $message);
}
Example #2
0
 public function toBeType($type)
 {
     if ($this->negate) {
         a::assertNotInternalType($type, $this->actual);
     } else {
         a::assertInternalType($type, $this->actual);
     }
 }
Example #3
0
 /**
  * Expect that a variable is not of a given type.
  *
  * @param string $expected
  * @param string $message
  *
  * @return Expect
  */
 public function notToBeOfType($expected, $message = '')
 {
     Assert::assertNotInternalType($expected, $this->value, $message);
     return $this;
 }
Example #4
0
 public function notInternalType($type)
 {
     a::assertNotInternalType($type, $this->actual, $this->description);
 }
Example #5
0
 public function isNotInternalType($type)
 {
     Assert::assertNotInternalType($type, $this->actual, $this->description);
     return $this;
 }