Skip to content

Commit c037cec

Browse files
committed
some refactorings
1 parent bfbd07e commit c037cec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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()), 'Validation failed (recursion->propOne)');
35+
$this->setExpectedException(get_class(new Exception()), 'Validation failed (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()), 'Validation failed (level1->level2->level3)',
60+
$this->setExpectedException(get_class(new Exception()), 'Validation failed (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('level1', 'level2', '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)