Skip to content

Commit baaed55

Browse files
committed
renamed trace types
1 parent 5c9490b commit baaed55

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/CodeBuilder/PHPCodeBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public function getPhpDocType(Schema $schema)
7373
return 'object';
7474
}
7575

76-
print_r($schema->getPath());
77-
print_r($schema->getSchemaData());
76+
//print_r($schema->getPath());
77+
//print_r($schema->getSchemaData());
7878
throw new Exception("Please im");
7979
return '';
8080
}
@@ -165,7 +165,7 @@ public function makeClassName($tracePath)
165165

166166
public function storeToDisk($srcPath)
167167
{
168-
print_r($this->classes);
168+
//print_r($this->classes);
169169

170170
}
171171

src/Types/ObjectType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function import($data)
2727
$result->$name = $property->import($data[$name]);
2828
}
2929
catch (Exception $exception) {
30-
$exception->pushStructureTrace('Properties:' . $name);
30+
$exception->pushStructureTrace('properties:' . $name);
3131
throw $exception;
3232
}
3333
unset($data[$name]);
@@ -41,7 +41,7 @@ public function import($data)
4141
$result->$name = $additionalProperties->propertiesSchema->import($value);
4242
}
4343
catch (Exception $exception) {
44-
$exception->pushStructureTrace('AdditionalProperties:' . $name);
44+
$exception->pushStructureTrace('additionalProperties:' . $name);
4545
throw $exception;
4646
}
4747
unset($data[$name]);

tests/src/ClassStructure/ClassStructureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testSample()
3232
public function testSampleInvalid()
3333
{
3434
$schema = SampleStructure::makeSchema();
35-
$this->setExpectedException(get_class(new Exception()), 'String required (Properties:recursion->Properties:propOne)');
35+
$this->setExpectedException(get_class(new Exception()), 'String required (properties:recursion->properties:propOne)');
3636
$schema->import(array(
3737
'propOne' => '1',
3838
'propTwo' => 2,

tests/src/Schema/ParentTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testParent()
5757
public function testInvalidImport()
5858
{
5959
$schema = $this->deepSchema();
60-
$this->setExpectedException(get_class(new Exception()), 'Integer required (Properties:level1->Properties:level2->Properties:level3)',
60+
$this->setExpectedException(get_class(new Exception()), 'Integer required (properties:level1->properties:level2->properties:level3)',
6161
Exception::INVALID_VALUE);
6262
try {
6363
$object = $schema->import(array(
@@ -69,7 +69,7 @@ public function testInvalidImport()
6969
));
7070
}
7171
catch (Exception $exception) {
72-
$this->assertSame(array('Properties:level1', 'Properties:level2', 'Properties:level3'), $exception->getStructureTrace());
72+
$this->assertSame(array('properties:level1', 'properties:level2', 'properties:level3'), $exception->getStructureTrace());
7373
throw $exception;
7474
}
7575
//$this->assertSame('abc', $object->level1->level2->level3);

0 commit comments

Comments
 (0)