Functional\Exceptions\InvalidArgumentExceptionTest::testExceptionIfInvalidPropertyName PHP Méthode

testExceptionIfInvalidPropertyName() public méthode

    public function testExceptionIfInvalidPropertyName()
    {
        InvalidArgumentException::assertPropertyName('property', 'func', 2);
        InvalidArgumentException::assertPropertyName(0, 'func', 2);
        InvalidArgumentException::assertPropertyName(0.2, 'func', 2);
        $this->setExpectedException('Functional\\Exceptions\\InvalidArgumentException', 'func() expects parameter 2 to be a valid property name or array index, object given');
        InvalidArgumentException::assertPropertyName(new \stdClass(), "func", 2);
    }