assertInstanceOf( Template::class, new Template( 'Foo' ) ); } public function testField() { $instance = new Template( 'Foo' ); $instance->field( 'Bar', 123 ); $instance->field( 'Bar', 'Foobar' ); $this->assertSame( '{{Foo|Bar=Foobar}}', $instance->text() ); } }