/** * Tests the JWeb::close method. * * @return void * * @since 11.3 */ public function testClose() { // Make sure the application is not already closed. $this->assertSame($this->inspector->closed, null, 'Checks the application doesn\'t start closed.'); $this->inspector->close(3); // Make sure the application is closed with code 3. $this->assertSame($this->inspector->closed, 3, 'Checks the application was closed with exit code 3.'); }