public function testFixtureInterface() { $em = $this->getMock('Doctrine\\Common\\Persistence\\ObjectManager'); $fixture = new MyFixture2(); $fixture->load($em); $this->assertTrue($fixture->loaded); }
public function testFixtureInterface() { $em = $this->createMock(ObjectManager::class); $fixture = new MyFixture2(); $fixture->load($em); self::assertTrue($fixture->loaded); }
public function testFixtureInterface() { $em = $this->getMockEntityManager(); $fixture = new MyFixture2(); $fixture->load($em); $this->assertTrue($fixture->loaded); }