abc = '123'; $class->source = new PhoneNumber(); static::assertSame('123', $class->abc); static::assertInstanceOf(PhoneNumber::class, $class->source); static::assertTrue($class->source->saveWithParent); static::assertFalse($class->saveWithParent); } public function testResourceUrlNullId() { $class = new PhoneNumber(); try { $url = $class->resourceUrl(null); static::fail('Did not raise error'); } catch (\Telnyx\Exception\UnexpectedValueException $e) { static::assertSame( 'Could not determine which URL to request: Telnyx\PhoneNumber instance has invalid ID: ', $e->getMessage() ); } catch (\Exception $e) { static::fail('Unexpected exception: ' . \get_class($e)); } } }