Example #1
0
 /**
  * StringList constructor.
  */
 public function __construct()
 {
     parent::__construct('numeric');
 }
 /**
  * @dataProvider filterableObjects
  */
 public function testIfFindLastWithoutAnyMatchReturnsNull($typeName, $beginningOfTheNameToFilter, array $testTypes)
 {
     $list = new GenericList($typeName);
     foreach ($testTypes as $testType) {
         $list->add($testType[0]);
     }
     $this->assertNull($list->findLast(new BeginningNameFilter(str_rot13($beginningOfTheNameToFilter))));
 }