Skip to content

Commit

Permalink
#110 Correcting count-oriented assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 30, 2016
1 parent afbc9f1 commit d4bdb84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/Common/Annotations/DocParserTest.php
Expand Up @@ -1055,7 +1055,7 @@ public function testNotAnAnnotationClassIsIgnoredWithoutWarningWithoutCheating()
$parser->setIgnoreNotImportedAnnotations(true);
$result = $parser->parse('@PHPUnit_Framework_TestCase');

$this->assertEquals(0, count($result));
$this->assertEmpty($result);
}

/**
Expand Down
Expand Up @@ -78,7 +78,7 @@ public function testInvalidAnnotationUsageButIgnoredClass()
$ref = new \ReflectionClass('Doctrine\Tests\Common\Annotations\Fixtures\InvalidAnnotationUsageButIgnoredClass');
$annots = $reader->getClassAnnotations($ref);

$this->assertEquals(1, count($annots));
$this->assertCount(1, $annots);
}

public function testIncludeIgnoreAnnotation()
Expand Down

0 comments on commit d4bdb84

Please sign in to comment.