assertTrue($island->isolated); $this->assertFalse($island->lazy); $this->assertNull($island->placeholder); } public function test_can_create_island_attribute_with_custom_values(): void { $island = new Island( isolated: true, lazy: true, placeholder: 'Loading widget...' ); $this->assertTrue($island->isolated); $this->assertTrue($island->lazy); $this->assertSame('Loading widget...', $island->placeholder); } public function test_can_create_non_isolated_island(): void { $island = new Island(isolated: false); $this->assertFalse($island->isolated); $this->assertFalse($island->lazy); $this->assertNull($island->placeholder); } public function test_can_create_lazy_island_without_placeholder(): void { $island = new Island(lazy: true); $this->assertTrue($island->isolated); $this->assertTrue($island->lazy); $this->assertNull($island->placeholder); } public function test_can_create_lazy_island_with_placeholder(): void { $island = new Island( lazy: true, placeholder: 'Please wait...' ); $this->assertTrue($island->isolated); $this->assertTrue($island->lazy); $this->assertSame('Please wait...', $island->placeholder); } }