diff --git a/src/Symfony/Component/Form/Tests/FormBuilderTest.php b/src/Symfony/Component/Form/Tests/FormBuilderTest.php index b17aed9e47..f5276f322e 100644 --- a/src/Symfony/Component/Form/Tests/FormBuilderTest.php +++ b/src/Symfony/Component/Form/Tests/FormBuilderTest.php @@ -112,14 +112,14 @@ class FormBuilderTest extends \PHPUnit_Framework_TestCase public function testAll() { - $this->assertEquals(0, count($this->builder->all())); + $this->assertCount(0, $this->builder->all()); $this->assertFalse($this->builder->has('foo')); $this->builder->add('foo', 'text'); $children = $this->builder->all(); $this->assertTrue($this->builder->has('foo')); - $this->assertEquals(1, count($children)); + $this->assertCount(1, $children); $this->assertArrayHasKey('foo', $children); $foo = $children['foo'];