public function DocParserTest::testCastNegativeFloat

@group DCOM-38

File

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

Class

DocParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

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