mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Change assignment assertion in accessors' tests to more restrict
This commit is contained in:
		
							parent
							
								
									477705f4be
								
							
						
					
					
						commit
						937355ce8b
					
				@ -1,6 +1,7 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace MageTest\Command;
 | 
					namespace MageTest\Command;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Mage\Command\AbstractCommand;
 | 
					use Mage\Command\AbstractCommand;
 | 
				
			||||||
use MageTest\TestHelper\BaseTest;
 | 
					use MageTest\TestHelper\BaseTest;
 | 
				
			||||||
use PHPUnit_Framework_MockObject_MockObject;
 | 
					use PHPUnit_Framework_MockObject_MockObject;
 | 
				
			||||||
@ -35,7 +36,7 @@ class AbstractCommandTest extends BaseTest
 | 
				
			|||||||
        $this->abstractCommand->setConfig($configMock);
 | 
					        $this->abstractCommand->setConfig($configMock);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $actual = $this->getPropertyValue($this->abstractCommand, 'config');
 | 
					        $actual = $this->getPropertyValue($this->abstractCommand, 'config');
 | 
				
			||||||
        $this->assertEquals($configMock, $actual);
 | 
					        $this->assertSame($configMock, $actual);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
@ -47,6 +48,6 @@ class AbstractCommandTest extends BaseTest
 | 
				
			|||||||
        $this->setPropertyValue($this->abstractCommand, 'config', $configMock);
 | 
					        $this->setPropertyValue($this->abstractCommand, 'config', $configMock);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $actual = $this->abstractCommand->getConfig();
 | 
					        $actual = $this->abstractCommand->getConfig();
 | 
				
			||||||
        $this->assertEquals($configMock, $actual);
 | 
					        $this->assertSame($configMock, $actual);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user