Example #1
0
 /**
  * @covers ::process
  */
 public function testAssignWithoutChange()
 {
     $rule = new Assign();
     $vertex = new JitAssign($a = new Variable(new Type(Type::TYPE_LONG)), $r = new Variable(new Type(Type::TYPE_DOUBLE)));
     $this->assertFalse($rule->process($vertex, $this->getMock(DirectedAdjacencyList::class)));
     $this->assertEquals('double', (string) $r->getType());
 }
Example #2
0
 /**
  * @covers ::process
  */
 public function testNoChange()
 {
     $rule = new Assign();
     $this->assertFalse($rule->process($this->getMock(Vertex::class), $this->getMock(DirectedAdjacencyList::class)));
 }