@@ -102,21 +102,21 @@ public function testInferSchemaFailsAfterLock()
102
102
public function testAutoInferSchemaWhenNullSchema ()
103
103
{
104
104
$ table = new Table ($ this ->fixture ('data.csv ' ));
105
- $ this ->assertTrue (is_a ($ table ->schema (), " frictionlessdata \\tableschema \\InferSchema " ));
105
+ $ this ->assertTrue (is_a ($ table ->schema (), ' frictionlessdata \\tableschema \\InferSchema ' ));
106
106
}
107
107
108
108
public function testHeaders ()
109
109
{
110
110
$ table = new Table ($ this ->fixture ('data.csv ' ));
111
- $ this ->assertEquals ([" first_name " , " last_name " , " order " ], $ table ->headers ());
111
+ $ this ->assertEquals ([' first_name ' , ' last_name ' , ' order ' ], $ table ->headers ());
112
112
$ this ->assertEquals ([
113
113
['first_name ' => 'Foo ' , 'last_name ' => 'Bar ' , 'order ' => 1 ],
114
114
['first_name ' => 'Baz ' , 'last_name ' => 'Bax ' , 'order ' => 2 ],
115
115
['first_name ' => 'באך ' , 'last_name ' => 'ביי ' , 'order ' => 3 ],
116
116
], $ table ->read ());
117
117
118
118
$ table = new Table ($ this ->fixture ('data.csv ' ));
119
- $ this ->assertEquals ([" first_name " , " last_name " , " order " ], $ table ->headers (1 ));
119
+ $ this ->assertEquals ([' first_name ' , ' last_name ' , ' order ' ], $ table ->headers (1 ));
120
120
$ this ->assertEquals ([
121
121
['first_name ' => 'Foo ' , 'last_name ' => 'Bar ' , 'order ' => 1 ],
122
122
['first_name ' => 'Baz ' , 'last_name ' => 'Bax ' , 'order ' => 2 ],
@@ -132,12 +132,12 @@ public function testHeaders()
132
132
public function testTableSave ()
133
133
{
134
134
$ table = new Table ($ this ->fixture ('data.csv ' ));
135
- $ table ->save (" test-table-save-data.csv " );
135
+ $ table ->save (' test-table-save-data.csv ' );
136
136
$ this ->assertEquals (
137
137
"first_name,last_name,order \nFoo,Bar,1 \nBaz,Bax,2 \nבאך,ביי,3 \n" ,
138
- file_get_contents (" test-table-save-data.csv " )
138
+ file_get_contents (' test-table-save-data.csv ' )
139
139
);
140
- unlink (" test-table-save-data.csv " );
140
+ unlink (' test-table-save-data.csv ' );
141
141
}
142
142
143
143
public function testInferSchemaWorksWithMoreRows ()
@@ -160,13 +160,13 @@ public function testInferSchemaWorksWithMoreRows()
160
160
161
161
public function testSimpleInferSchema ()
162
162
{
163
- $ table = new Table ($ this ->fixture (" data.csv " ));
164
- $ this ->assertEquals ((object )[
165
- " fields " => [
166
- (object )[ " name " => " first_name " , " type " => " string " ],
167
- (object )[ " name " => " last_name " , " type " => " string " ],
168
- (object )[ " name " => " order " , " type " => " integer " ],
169
- ]
163
+ $ table = new Table ($ this ->fixture (' data.csv ' ));
164
+ $ this ->assertEquals ((object ) [
165
+ ' fields ' => [
166
+ (object ) [ ' name ' => ' first_name ' , ' type ' => ' string ' ],
167
+ (object ) [ ' name ' => ' last_name ' , ' type ' => ' string ' ],
168
+ (object ) [ ' name ' => ' order ' , ' type ' => ' integer ' ],
169
+ ],
170
170
], $ table ->schema ()->descriptor ());
171
171
}
172
172
0 commit comments