PHPUnit_Framework_Assert::assertAttributeInternalType PHP Method

assertAttributeInternalType() public static method

Asserts that an attribute is of a given type.
public static assertAttributeInternalType ( string $expected, string $attributeName, string | object $classOrObject, string $message = '' )
$expected string
$attributeName string
$classOrObject string | object
$message string
    public static function assertAttributeInternalType($expected, $attributeName, $classOrObject, $message = '')
    {
        static::assertInternalType($expected, static::readAttribute($classOrObject, $attributeName), $message);
    }

Usage Example

Esempio n. 1
0
 /**
  * @Given /^the response json's "([^"]*)" key should be of type "([^"]*)"$/
  */
 public function theResponseJsonSKeyShouldBeOfType($keyword, $expectedType)
 {
     Assertions::assertAttributeInternalType($expectedType, $keyword, (object) $this->getResponse()->json());
 }
All Usage Examples Of PHPUnit_Framework_Assert::assertAttributeInternalType
PHPUnit_Framework_Assert