コード例 #1
0
 public function testCanConstructPrintRequestFromProperty()
 {
     $instance = new PrintRequestFactory();
     $printRequest = $instance->newPrintRequestByProperty(new DIProperty('Foo'));
     $this->assertInstanceOf('\\SMW\\Query\\PrintRequest', $printRequest);
     $this->assertEquals('Foo', $printRequest->getLabel());
 }