コード例 #1
0
ファイル: WireTest.php プロジェクト: hamdrew/adventofcode
 /**
  * @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());
 }