1 | <?php |
||
8 | class TdbmFluidSchemaTest extends TestCase |
||
9 | { |
||
10 | public function testTable() |
||
11 | { |
||
12 | $schema = new Schema(); |
||
13 | $fluid = new TdbmFluidSchema($schema); |
||
14 | |||
15 | $posts = $fluid->table('posts'); |
||
16 | |||
17 | $this->assertTrue($schema->hasTable('posts')); |
||
18 | |||
19 | $this->assertSame($posts, $fluid->table('posts'), 'Failed asserting that the same instance is returned.'); |
||
20 | } |
||
21 | |||
22 | public function testExistingTable() |
||
23 | { |
||
24 | $schema = new Schema(); |
||
25 | $postsSchemaTable = $schema->createTable('posts'); |
||
26 | $fluid = new TdbmFluidSchema($schema); |
||
27 | |||
28 | $posts = $fluid->table('posts'); |
||
29 | $posts->column('foo'); |
||
30 | |||
31 | $this->assertTrue($postsSchemaTable->hasColumn('foo')); |
||
32 | } |
||
33 | |||
34 | public function testJunctionTable() |
||
47 | |||
48 | public function testGetDbalSchema() |
||
55 | } |
||
56 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: