object = $this->getMockBuilder(PaymentDataYooMoney::class)->getMockForAbstractClass(); $this->assertTrue(class_exists(PaymentDataYooMoney::class)); $this->assertInstanceOf(PaymentDataYooMoney::class, $this->object); } /** * Test property "type" * * @return void * @throws Exception */ public function testType(): void { $instance = $this->getTestInstance(); self::assertNotNull($instance->getType()); self::assertNotNull($instance->type); self::assertContains($instance->getType(), ['yoo_money']); self::assertContains($instance->type, ['yoo_money']); } }