public function testInitServices_Inheritance() { $mapHas = [['propA', true], ['propB', true], ['propC', true], ['newPropA', true]]; $this->container->method('has')->will($this->returnValueMap($mapHas)); $mapGet = [['propA', 'PropA value'], ['propB', new \ArrayObject()], ['propC', new \stdClass()], ['newPropA', 'PropNewA value']]; $this->container->method('get')->will($this->returnValueMap($mapGet)); $tested = new Inheritance(); $this->assertEquals('PropNewA value', $tested->propA); }
/** * @test * @expectedException \InvalidArgumentException */ public function test_it_throws_exception_on_not_implemented_transport() { $this->containerMock->method('get')->will($this->returnValue(['proophessor-do' => ['mail' => ['transport' => 'missing']]])); $factory = $this->factory; $factory($this->containerMock); }