protected function setUp(): void
{ // Initialize static variable prior to testing.
self::
$shutdownCalled =
[];
parent::
setUp();
} /**
* @covers ::assertPostConditions
*/
public function testShutdownFunction() { $this->expectedShutdownCalled =
['shutdownFunction', 'shutdownFunction2'
];
drupal_register_shutdown_function([$this, 'shutdownFunction'
]);
} /**
* @covers ::assertPostConditions
*/
public function testNoShutdownFunction() { $this->expectedShutdownCalled =
[];
} /**
* Registers that this shutdown function has been called.
*/