Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit bab58f1

Browse files
committed
merged branch WouterJ/patch-2 (PR #441)
This PR was merged into the 2.0 branch. Commits ------- 1264284 Changed assertion to be more specific Discussion ---------- [AcmeDemoBundle] Changed assertion to be more specific Bug fix: no Feature addition: no Backwards compatibility break: no Symfony2 tests pass: - Fixes the following tickets: - Todo: - License of the code: MIT Documentation PR: symfony/symfony-docs@67b257e This was changed a long time ago inside the documentation, but not in the actual demo code. It causes an out of sync documentation/code. This PR will solve this.
2 parents 302a41d + 1264284 commit bab58f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Acme/DemoBundle/Tests/Controller/DemoControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ public function testIndex()
1212

1313
$crawler = $client->request('GET', '/demo/hello/Fabien');
1414

15-
$this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
15+
$this->assertGreaterThan(0, $crawler->filter('html:contains("Hello Fabien")')->count());
1616
}
1717
}

0 commit comments

Comments
 (0)