Пример #1
0
 public function testNameUppercased()
 {
     $output = SayHello::name('steve johnson');
     $this->assertContains("Steve", $output);
     $this->assertNotContains("steve", $output);
     $this->assertContains("Johnson", $output);
     $this->assertNotContains("johnson", $output);
 }
Пример #2
0
 public function testName()
 {
     $output = SayHello::name("steve");
     $this->assertEquals("Hello Steve!", $output);
 }