<?php

namespace Cocur\Chain\Link;


class SearchTest extends \PHPUnit\Framework\TestCase
{
    /**
     * @test
     * @covers \Cocur\Chain\Link\Search::search()
     */
    public function searchSearchesArrayForValue(): void
    {
        /** @var Search $mock */
        $mock        = $this->getMockForTrait(Search::class);
        $mock->array = ['foo', 'bar'];

        $this->assertEquals(1, $mock->search('bar'));
    }
}
