assertNotInstanceOf() public static method

Asserts that a variable is not of a given type.
public static assertNotInstanceOf ( 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 assertNotInstanceOf($expected, $actual, $message = '')
{
    return PHPUnit_Framework_Assert::assertNotInstanceOf($expected, $actual, $message);
}
コード例 #2
0
ファイル: Expect.php プロジェクト: jasonmccreary/expect
 public function toBeInstanceOf($class)
 {
     if ($this->negate) {
         a::assertNotInstanceOf($class, $this->actual);
     } else {
         a::assertInstanceOf($class, $this->actual);
     }
 }
コード例 #3
0
ファイル: Verify.php プロジェクト: jaschweder/Verify
 public function isNotInstanceOf($class)
 {
     a::assertNotInstanceOf($class, $this->actual, $this->description);
 }
コード例 #4
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 notToBeInstanceOf($expected, $message = '')
 {
     Assert::assertNotInstanceOf($expected, $this->value, $message);
     return $this;
 }
コード例 #5
0
ファイル: ObjectMatcher.php プロジェクト: dekeysoft/pu-tester
 public function isNotInstanceOf($class)
 {
     Assert::assertNotInstanceOf($class, $this->actual, $this->description);
     return $this;
 }
コード例 #6
0
 /**
  * @param $class
  * @param $actual
  * @param $description
  */
 protected function assertNotInstanceOf($class, $actual, $description)
 {
     \PHPUnit_Framework_Assert::assertNotInstanceOf($class, $actual, $description);
 }