Ejemplo n.º 1
0
 public function mock_repository_should_work_with()
 {
     $mockery = new MockRepository();
     $interface = $mockery->createMock('net.xp_framework.unittest.tests.mock.IComplexInterface');
     $interface->fooWithTypeHint(Arg::anyOfType('net.xp_framework.unittest.tests.mock.IEmptyInterface'));
 }
 public function typeof_date_should_not_match_primitives()
 {
     $this->assertFalse(Arg::anyOfType('util.Date')->matches(1));
 }