From be2456b19e4100626044504cd2823f157c3e57ee Mon Sep 17 00:00:00 2001 From: William DURAND Date: Wed, 11 Apr 2012 20:45:41 +0200 Subject: [PATCH] =?UTF-8?q?[Form]=C2=A0[Tests]=20Used=20assertCount()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Symfony/Component/Form/Tests/FormBuilderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'];