You are here

public function InstantiatorTest::testInstantiatesSeparateInstances in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php \DoctrineTest\InstantiatorTest\InstantiatorTest::testInstantiatesSeparateInstances()

@dataProvider getInstantiableClasses

Parameters

string $className:

File

vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php, line 64

Class

InstantiatorTest
Tests for { @author Marco Pivetta <ocramius@gmail.com>

Namespace

DoctrineTest\InstantiatorTest

Code

public function testInstantiatesSeparateInstances($className) {
  $instance1 = $this->instantiator
    ->instantiate($className);
  $instance2 = $this->instantiator
    ->instantiate($className);
  $this
    ->assertEquals($instance1, $instance2);
  $this
    ->assertNotSame($instance1, $instance2);
}