public function DocParserTest::testCastFloat

@group DCOM-38

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/DocParserTest.php, line 1037

Class

DocParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testCastFloat() {
  $parser = $this
    ->createTestParser();
  $result = $parser
    ->parse("@Name(foo=1234.345)");
  $annot = $result[0];
  $this
    ->assertInternalType('float', $annot->foo);
}