Пример #1
0
 /**
  * @dataProvider GetAllByAttributeValueProvider
  */
 public function testGetAllByAttributeValue_WithHtmlEntities($value, $collectionValue)
 {
     $entity = new Entity(array('id' => $collectionValue));
     $collection = new Collection();
     $collection->append($entity);
     $expectedCollection = new Collection();
     $expectedCollection->offsetSet($entity->getId(), $entity);
     $this->assertEquals($expectedCollection, $collection->getAllByAttributeValue($value));
 }