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
コード例 #1
0
ファイル: Functions.php プロジェクト: delkyd/sugarcrm_dev
/**
 * 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);
}
コード例 #2
0
ファイル: Expect.php プロジェクト: jasonmccreary/expect
 public function toBeType($type)
 {
     if ($this->negate) {
         a::assertNotInternalType($type, $this->actual);
     } else {
         a::assertInternalType($type, $this->actual);
     }
 }
コード例 #3
0
ファイル: Expect.php プロジェクト: jpkleemans/phpunit-expect
 /**
  * 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;
 }
コード例 #4
0
ファイル: Verify.php プロジェクト: jaschweder/Verify
 public function notInternalType($type)
 {
     a::assertNotInternalType($type, $this->actual, $this->description);
 }
コード例 #5
0
ファイル: ValueMatcher.php プロジェクト: dekeysoft/pu-tester
 public function isNotInternalType($type)
 {
     Assert::assertNotInternalType($type, $this->actual, $this->description);
     return $this;
 }