<commit_before><?php

namespace Knp\Menu\Tests\Provider;

use Knp\Menu\ItemInterface;
use Knp\Menu\Provider\ArrayAccessProvider;
use Knp\Menu\Provider\LazyProvider;

class LazyProviderTest extends \PHPUnit_Framework_TestCase
{
    public function testHas()
    {
        $provider = new LazyProvider(array('first' => function () {}, 'second' => function () {}));
        $this->assertTrue($provider->has('first'));
        $this->assertTrue($provider->has('second'));<commit_msg>Fix the testsuite on PHPUnit 6<commit_after><?php

namespace Knp\Menu\Tests\Provider;

use Knp\Menu\ItemInterface;
use Knp\Menu\Provider\LazyProvider;
use PHPUnit\Framework\TestCase;

class LazyProviderTest extends TestCase
{
    public function testHas()
    {
        $provider = new LazyProvider(array('first' => function () {}, 'second' => function () {}));
        $this->assertTrue($provider->has('first'));
        $this->assertTrue($provider->has('second'));
{'fraction_non_alphanumeric': 0.15661375661375662, 'fraction_numerical': 0.0010582010582010583, 'mean_word_length': 4.564705882352941, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6074776', 'n_tokens_mistral': 274, 'n_tokens_neox': 280, 'n_words': 52}