1<?php
2
3declare(strict_types = 1);
4
5namespace Elasticsearch\Tests;
6
7use Elasticsearch\ClientBuilder;
8use Elasticsearch\Common\Exceptions\InvalidArgumentException;
9use Elasticsearch\Tests\ClientBuilder\DummyLogger;
10use PHPUnit\Framework\TestCase;
11
12class ClientBuilderTest extends TestCase
13{
14    /**
15     * @expectedException TypeError
16     */
17    public function testClientBuilderThrowsExceptionForIncorrectLoggerClass()
18    {
19        ClientBuilder::create()->setLogger(new DummyLogger);
20    }
21
22    /**
23     * @expectedException TypeError
24     */
25    public function testClientBuilderThrowsExceptionForIncorrectTracerClass()
26    {
27        ClientBuilder::create()->setTracer(new DummyLogger);
28    }
29}
30