diff options
author | Stanley Cheung <stanleycheung@google.com> | 2015-10-09 16:58:01 -0700 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2015-10-09 16:58:41 -0700 |
commit | b0cd08acabe4273170e04e1f41e3656bad6db405 (patch) | |
tree | ac0af9f2f11be10852c6484917febfc5c336f658 /src/php/tests/generated_code/AbstractGeneratedCodeTest.php | |
parent | abaf47c3a57d5f00c2e75b98ed9a52b35252c4fa (diff) |
php: validate and normalize metadata keys
Diffstat (limited to 'src/php/tests/generated_code/AbstractGeneratedCodeTest.php')
-rw-r--r-- | src/php/tests/generated_code/AbstractGeneratedCodeTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/php/tests/generated_code/AbstractGeneratedCodeTest.php b/src/php/tests/generated_code/AbstractGeneratedCodeTest.php index 9cee188666..5cdba1e5a0 100644 --- a/src/php/tests/generated_code/AbstractGeneratedCodeTest.php +++ b/src/php/tests/generated_code/AbstractGeneratedCodeTest.php @@ -51,6 +51,14 @@ abstract class AbstractGeneratedCodeTest extends PHPUnit_Framework_TestCase { $this->assertTrue(is_string(self::$client->getTarget())); } + /** + * @expectedException InvalidArgumentException + */ + public function testInvalidMetadata() { + $div_arg = new math\DivArgs(); + $call = self::$client->Div($div_arg, array(' ' => 'abc123')); + } + public function testWriteFlags() { $div_arg = new math\DivArgs(); $div_arg->setDividend(7); |