1 | <?php |
||
2 | |||
3 | /** |
||
4 | * This file is part of the tarantool/client package. |
||
5 | * |
||
6 | * (c) Eugene Leonovich <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | declare(strict_types=1); |
||
13 | |||
14 | namespace Tarantool\Client\Tests\Integration; |
||
15 | |||
16 | use Tarantool\Client\Exception\RequestFailed; |
||
17 | use Tarantool\Client\Schema\Criteria; |
||
18 | |||
19 | final class UnknownSpaceTest extends TestCase |
||
20 | { |
||
21 | public function testGetByName() : void |
||
22 | { |
||
23 | $this->expectException(RequestFailed::class); |
||
24 | $this->expectExceptionMessage("Space 'non_existing_space' does not exist"); |
||
25 | |||
26 | $this->client->getSpace('non_existing_space'); |
||
0 ignored issues
–
show
|
|||
27 | } |
||
28 | |||
29 | public function testGetById() : void |
||
30 | { |
||
31 | $space = $this->client->getSpaceById(123456); |
||
32 | |||
33 | $this->expectException(RequestFailed::class); |
||
34 | $this->expectExceptionMessage("Space '123456' does not exist"); |
||
35 | |||
36 | $space->select(Criteria::key([])); |
||
37 | } |
||
38 | } |
||
39 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.