AwsInspector\Tests\RegistryTest::getReturnsExpectedObject PHP Method

getReturnsExpectedObject() public method

    public function getReturnsExpectedObject()
    {
        $object = new \stdClass();
        $object->value = 'My String';
        \AwsInspector\Registry::set('key_phpunit_getReturnsExpectedObject', $object);
        $value = \AwsInspector\Registry::get('key_phpunit_getReturnsExpectedObject');
        $this->assertTrue($value instanceof \stdClass);
        $this->assertSame($object->value, $value->value);
    }