Completed
Push — master ( 483fcf...aaf025 )
by Alice
34:49 queued 14:48
created
tests/unit/ServiceContainerTest.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -16,42 +16,42 @@
 block discarded – undo
16 16
 class ServiceContainerTest extends TestCase
17 17
 {
18 18
 
19
-	public function test_addService()
20
-	{
21
-		$definition = $this->getMockBuilder(ServiceDefinitionInterface::class)->getMock();
19
+    public function test_addService()
20
+    {
21
+        $definition = $this->getMockBuilder(ServiceDefinitionInterface::class)->getMock();
22 22
 
23
-		$definition->expects($this->once())
24
-			->method('getServiceName')
25
-			->willReturn('service.name');
23
+        $definition->expects($this->once())
24
+            ->method('getServiceName')
25
+            ->willReturn('service.name');
26 26
 
27
-		$this->assertSame('service.name', $definition->getServiceName());
28
-	}
27
+        $this->assertSame('service.name', $definition->getServiceName());
28
+    }
29 29
 
30 30
 //	 * @expectedException DuplicatedServiceException
31 31
 
32
-	/**
33
-	 */
34
-	public function test_addServiceInstance()
35
-	{
36
-		$instance = $this->getMockBuilder(ServiceInstanceInterface::class)->getMock();
32
+    /**
33
+     */
34
+    public function test_addServiceInstance()
35
+    {
36
+        $instance = $this->getMockBuilder(ServiceInstanceInterface::class)->getMock();
37 37
 
38
-		$instance->expects($this->once())
39
-			->method('getServiceName')
40
-			->willReturn('service.name');
38
+        $instance->expects($this->once())
39
+            ->method('getServiceName')
40
+            ->willReturn('service.name');
41 41
 
42
-		$this->assertSame('service.name', $instance->getServiceName());
43
-	}
42
+        $this->assertSame('service.name', $instance->getServiceName());
43
+    }
44 44
 
45
-	public function test_addServiceInstance2()
46
-	{
47
-		$instance = $this->getMockBuilder(ServiceInstanceInterface::class)->getMock();
45
+    public function test_addServiceInstance2()
46
+    {
47
+        $instance = $this->getMockBuilder(ServiceInstanceInterface::class)->getMock();
48 48
 
49
-		$object = new \DateTime();
50
-		$instance->expects($this->once())
51
-			->method('getInstance')
52
-			->willReturn($object);
49
+        $object = new \DateTime();
50
+        $instance->expects($this->once())
51
+            ->method('getInstance')
52
+            ->willReturn($object);
53 53
 
54
-		$this->assertSame($object, $instance->getInstance());
55
-	}
54
+        $this->assertSame($object, $instance->getInstance());
55
+    }
56 56
 
57 57
 }
Please login to merge, or discard this patch.