/** * @covers ::__construct * @covers ::username * @covers ::password * @covers ::url * @covers ::useContext */ public function testConstructorSetsAllTheFieldsAccessibleBySetters() { $instance = new Instance('http://confluence.com:8090', 'admin', 'admin', false); $this->assertSame('http://confluence.com:8090', $instance->url()); $this->assertSame('admin', $instance->username()); $this->assertSame('admin', $instance->password()); $this->assertSame(false, $instance->useContext()); }