createClassObject(); $this->assertInstanceOf(Math::class, $math); } public function testGetEngine() { $expectedEngine = new GmpEngine(); $math = $this->createClassObject(); $math::setEngine($expectedEngine); $this->assertSame($expectedEngine, $math::getEngine()); } public function testGetEngineName() { $expectedEngineName = 'Test engine name'; $math = $this->createClassObject(); $math::setEngineName($expectedEngineName); $this->assertSame($expectedEngineName, $math::getEngineName()); } private function createClassObject() { return new Math(); } }