Beispiel #1
0
 /**
  * @test
  * @covers ::__construct
  * @covers ::getName
  * @covers ::getSource
  */
 public function setsNameAndSourceWhenCreated()
 {
     $name = 'test';
     $source = \Mockery::mock('\\Hamdrew\\AdventOfCode\\Day7\\CircuitComponent');
     $wire = new Wire($name, $source);
     $this->assertSame($name, $wire->getName());
     $this->assertSame($source, $wire->getSource());
 }