@@ -60,10 +60,10 @@ |
||
60 | 60 | ]; |
61 | 61 | $usingArray = UsingTest::usingTestDataProvider(); |
62 | 62 | $data = []; |
63 | - foreach($usingArray as $usingItem){ |
|
63 | + foreach($usingArray as $usingItem) { |
|
64 | 64 | $expected = $usingItem[0]; |
65 | 65 | $using = new Using($usingItem[1],$usingItem[2],$usingItem[3]); |
66 | - foreach($base as $baseItem){ |
|
66 | + foreach($base as $baseItem) { |
|
67 | 67 | $data[] = [sprintf($baseItem[0],$expected), $baseItem[1], $baseItem[2], [$using]]; |
68 | 68 | } |
69 | 69 |
@@ -23,7 +23,8 @@ |
||
23 | 23 | $this->assertXmlStringEqualsXmlString('<edmx:Edmx xmlns="http://schemas.microsoft.com/ado/2009/11/edm" xmlns:annotations="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:metadata="http://schemas.microsoft.com/ado/2007/08/DataServices/Metadata" Version="1.0"><edmx:DataServices metadata:DataServiceVersion="3.0"><Schema /></edmx:DataServices></edmx:Edmx>', $xml); |
24 | 24 | } |
25 | 25 | |
26 | - public function testEdmxSerializePartialSchema(){ |
|
26 | + public function testEdmxSerializePartialSchema() |
|
27 | + { |
|
27 | 28 | $writterContext = new WriterContext(OdataVersions::THREE()); |
28 | 29 | $edmx = new Edmx(); |
29 | 30 | $schema = new Schema('ODataWebV3.Northwind.Model'); |
@@ -8,7 +8,8 @@ discard block |
||
8 | 8 | class EntityContainerTest extends TestCase |
9 | 9 | { |
10 | 10 | |
11 | - public static function getEntityContainer(){ |
|
11 | + public static function getEntityContainer() |
|
12 | + { |
|
12 | 13 | $entityContainer = new EntityContainer("NorthwindEntities", true,null,true); |
13 | 14 | |
14 | 15 | $entitySetarray = [ |
@@ -39,7 +40,7 @@ discard block |
||
39 | 40 | ['Summary_of_Sales_by_Quarters','NorthwindModel.Summary_of_Sales_by_Quarter'], |
40 | 41 | ['Summary_of_Sales_by_Years','NorthwindModel.Summary_of_Sales_by_Year'], |
41 | 42 | ]; |
42 | - foreach($entitySetarray as $es){ |
|
43 | + foreach($entitySetarray as $es) { |
|
43 | 44 | $entityContainer->addToEntitySet(new EntityContainer\EntitySet($es[0],$es[1])); |
44 | 45 | } |
45 | 46 | $assocationSetArray = [ |
@@ -103,7 +104,8 @@ discard block |
||
103 | 104 | return $entityContainer; |
104 | 105 | } |
105 | 106 | |
106 | - public function testXmlSerialize(){ |
|
107 | + public function testXmlSerialize() |
|
108 | + { |
|
107 | 109 | $domNode = $this->TESTNODE; |
108 | 110 | $entityContainer = self::getEntityContainer(); |
109 | 111 | $domNode = $this->writerContext->write($entityContainer, false); |