/** * @test */ public function it_sets_the_loader() { $loader_mock = TestFactory::mockClassLoader(); $this->assertEquals($this->generator, $this->generator->setLoader($loader_mock)); $this->assertInstanceOf('Composer\\Autoload\\ClassLoader', $this->generator->get('loader')); }