public function testSetPosYMethodSetsPosYAndGetPosYMethodReturnsPosY() { $adapter = $this->getMockBuilder('Phower\\Image\\Adapter\\AdapterInterface')->getMock(); $layer = new Layer($adapter); $posY = 10; $this->assertInstanceOf('Phower\\Image\\LayerInterface', $layer->setPosY($posY)); $this->assertEquals($posY, $layer->getPosY()); }