예제 #1
0
파일: index.php 프로젝트: fmrahman/sample
     #logo {
       width: 268px;
       height: 55px;
     }
    </style>
  </head>
  <body>
    <div id="container">
      <img src="reinvent.png" id="logo" alt="AWS re:Invent">
      <h1>Application Lifecycle Management Bootcamp</h1>
      <p>
	<?php 
require_once 'src/Sample.php';
$obj = new Sample();
echo $obj->helloWorld();
?>
      </p>
      <?php 
$instance_id = file_get_contents("http://169.254.169.254/latest/meta-data/instance-id");
$local_ipv4 = file_get_contents("http://169.254.169.254/latest/meta-data/local-ipv4");
$instance_type = file_get_contents("http://169.254.169.254/latest/meta-data/instance-type");
$article = "a";
switch (substr($instance_type, 0, 1)) {
    case "m":
    case "r":
    case "i":
    case "h":
        $article = "an";
        break;
}
예제 #2
0
 public function testHelloWorld()
 {
     $obj = new Sample();
     $this->assertTrue($obj->helloWorld() == "Hello! Je m'eclate encore plus...");
 }
예제 #3
0
 public function testHelloWorld()
 {
     $obj = new Sample();
     $this->assertTrue($obj->helloWorld() == "Hello World. AWS CodePipeline and Continuous Deployment is so much fun!");
 }
예제 #4
0
 /**
  * @test
  */
 public function aaa()
 {
     $Sample = new Sample();
     $this->assertEquals($Sample->helloWorld(), 'hello world!');
 }
예제 #5
0
 public function testHelloWorld()
 {
     $obj = new Sample();
     $this->assertTrue($obj->helloWorld() == "Hello CHANGED WITH GITHUB!");
 }
예제 #6
0
 public function testHelloWorld()
 {
     $obj = new Sample();
     $this->assertTrue($obj->helloWorld() == "Hello!");
 }