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
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());
 }
Esempio n. 2
0
/**
 * Asserts that an attribute is of a given type.
 *
 * @param string $expected
 * @param string $attributeName
 * @param mixed  $classOrObject
 * @param string $message
 * @since Method available since Release 3.5.0
 */
function assertAttributeInternalType($expected, $attributeName, $classOrObject, $message = '')
{
    return PHPUnit_Framework_Assert::assertAttributeInternalType($expected, $attributeName, $classOrObject, $message);
}
 /**
  * @Given /^the response json's "([^"]*)" key should be of type "([^"]*)"$/
  */
 public function theResponseJsonSKeyShouldBeOfType($key_name, $desired_type)
 {
     PHPUnit_Framework_Assert::assertAttributeInternalType($desired_type, $key_name, (object) $this->response->json());
 }