tests/unit/Subjects/AbstractSubjectTest.php
/**
     * Test the recursive merge attributes method.
     *
     * @return void
     */
Test the recursive merge attributes method.
@return void
Test the recursive merge attributes method . @return void
public function testMergeAttributesRecursive()
    {
        $this->abstractSubject
             ->getRegistryProcessor()
             ->expects($this->once())
             ->method('mergeAttributesRecursive')
             ->with(RegistryKeys::STATUS, $status = array('test' => 'test'))
             ->willReturn(null);
        $this->abstractSubject->setSerial($this->serial);
        $this->assertNull($this->abstractSubject->mergeAttributesRecursive($status));
    }
public function testMergeAttributesRecursive ( ) { $ this -> abstractSubject -> getRegistryProcessor ( ) -> expects ( $ this -> once ( ) ) -> method ( 'mergeAttributesRecursive' ) -> with ( RegistryKeys :: STATUS , $ status = array ( 'test' => 'test' ) ) -> willReturn ( null ) ; $ this -> abstractSubject -> setSerial ( $ this -> serial ) ; $ this -> assertNull ( $ this -> abstractSubject -> mergeAttributesRecursive ( $ status ) ) ; }
Test the recursive merge attributes method.
Test the recursive merge attributes method .
// mock the registry processor raiseCounter() method // set the serial first // merge the attributes recursively