Example #1
0
 public function testTheKeysFromTheCollectionCanBeReturned()
 {
     $graphNode = new Collection(['key1' => 'foo', 'key2' => 'bar', 'key3' => 'baz']);
     $fieldNames = $graphNode->getFieldNames();
     $this->assertEquals(['key1', 'key2', 'key3'], $fieldNames);
     // @todo v6: Remove this assertion
     $propertyNames = $graphNode->getPropertyNames();
     $this->assertEquals(['key1', 'key2', 'key3'], $propertyNames);
 }
 public function testTheKeysFromTheCollectionCanBeReturned()
 {
     $graphObject = new Collection(['key1' => 'foo', 'key2' => 'bar', 'key3' => 'baz']);
     $propertyKeys = $graphObject->getPropertyNames();
     $this->assertEquals(['key1', 'key2', 'key3'], $propertyKeys);
 }