/** * @dataProvider GetByAttributeValueProvider */ public function testGetByAttributeValue_WithHtmlEntities($value, $collectionValue) { $entity = new Entity(array('id' => $collectionValue)); $collection = new Collection(); $collection->append($entity); $this->assertEquals($entity, $collection->getByAttributeValue($value)); }